doomain 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -438,7 +438,7 @@ The API checks configured provider accounts, tolerates failures from individual
438
438
 
439
439
  ## Command Reference
440
440
 
441
- Run `doomain help <command>` for oclif-generated help.
441
+ Use `doomain --help`, `doomain -h`, or `doomain help <command>` for oclif-generated help. Use `doomain --version`, `doomain -v`, or `doomain version` to print the installed version.
442
442
 
443
443
  ### `doomain`
444
444
 
@@ -0,0 +1,5 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Version extends Command {
3
+ static description: string;
4
+ run(): Promise<void>;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Version extends Command {
3
+ static description = 'Display the installed doomain version.';
4
+ async run() {
5
+ await this.parse(Version);
6
+ this.log(this.config.userAgent);
7
+ }
8
+ }
@@ -218,6 +218,13 @@ export const commandSchemas = [
218
218
  safeForAgents: true,
219
219
  flags: [{ name: 'json', type: 'boolean', description: 'Output a single JSON object and never prompt.' }],
220
220
  },
221
+ {
222
+ name: 'version',
223
+ description: 'Display the installed doomain version.',
224
+ examples: ['doomain version'],
225
+ safeForAgents: true,
226
+ flags: [],
227
+ },
221
228
  {
222
229
  name: 'update',
223
230
  description: 'Install the latest doomain version from npm without using the existing npm cache.',
@@ -259,6 +259,26 @@
259
259
  "verify.js"
260
260
  ]
261
261
  },
262
+ "version": {
263
+ "aliases": [],
264
+ "args": {},
265
+ "description": "Display the installed doomain version.",
266
+ "flags": {},
267
+ "hasDynamicHelp": false,
268
+ "hiddenAliases": [],
269
+ "id": "version",
270
+ "pluginAlias": "doomain",
271
+ "pluginName": "doomain",
272
+ "pluginType": "core",
273
+ "strict": true,
274
+ "enableJsonFlag": false,
275
+ "isESM": true,
276
+ "relativePath": [
277
+ "dist",
278
+ "commands",
279
+ "version.js"
280
+ ]
281
+ },
262
282
  "wizard": {
263
283
  "aliases": [],
264
284
  "args": {},
@@ -1306,5 +1326,5 @@
1306
1326
  ]
1307
1327
  }
1308
1328
  },
1309
- "version": "0.1.22"
1329
+ "version": "0.1.23"
1310
1330
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "doomain",
3
3
  "description": "Configure production domains and DNS records in seconds",
4
- "version": "0.1.22",
4
+ "version": "0.1.23",
5
5
  "author": "Crafter Station",
6
6
  "packageManager": "bun@1.3.13",
7
7
  "bin": {
@@ -47,6 +47,12 @@
47
47
  "main": "dist/index.js",
48
48
  "type": "module",
49
49
  "oclif": {
50
+ "additionalHelpFlags": [
51
+ "-h"
52
+ ],
53
+ "additionalVersionFlags": [
54
+ "-v"
55
+ ],
50
56
  "bin": "doomain",
51
57
  "dirname": "doomain",
52
58
  "commands": "./dist/commands",