@vodmal/vdx-cli 0.9.1 → 0.10.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +4 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vodmal/vdx-cli",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "vdx — unified lifecycle interface (up/down/build/test/check/fix) + versioned maturity audit with drift detection. Pairs with the vdx Claude Code plugin.",
5
5
  "keywords": [
6
6
  "vdx",
package/src/index.ts CHANGED
@@ -36,8 +36,8 @@ function usage(): never {
36
36
  process.stderr.write(
37
37
  `Usage:
38
38
  vdx <up|down|build|test|check|fix> run lifecycle verb (via mise run <verb>)
39
- vdx audit <project_path> [--rubric <path>] [--stack <stack>] [--format=ansi|markdown|json] [--json]
40
- vdx init <project_path> [--stack <id>] [--baseline <ref>] [--dry-run] [--force]
39
+ vdx audit [project_path] [--rubric <path>] [--stack <stack>] [--format=ansi|markdown|json] [--json] (default: cwd)
40
+ vdx init [project_path] [--stack <id>] [--baseline <ref>] [--dry-run] [--force] (default: cwd)
41
41
  vdx publish <patch|minor|major> [--dry-run] [--force]
42
42
  vdx doctor [--format=ansi|markdown|json] [--json]
43
43
  `,
@@ -80,8 +80,7 @@ function parseArgs(argv: string[]): ParsedArgs {
80
80
  }
81
81
 
82
82
  function cmdAudit(opts: ParsedArgs): void {
83
- const projectArg = opts.positionals[0];
84
- if (!projectArg) usage();
83
+ const projectArg = opts.positionals[0] ?? '.';
85
84
  const projectRoot = path.resolve(projectArg);
86
85
 
87
86
  if (!looksLikeProject(projectRoot)) {
@@ -129,8 +128,7 @@ function cmdAudit(opts: ParsedArgs): void {
129
128
  }
130
129
 
131
130
  function cmdInit(opts: ParsedArgs): void {
132
- const projectArg = opts.positionals[0];
133
- if (!projectArg) usage();
131
+ const projectArg = opts.positionals[0] ?? '.';
134
132
  const projectRoot = path.resolve(projectArg);
135
133
 
136
134
  const baselineFlag = opts.flags.baseline;