@vzn/vx 0.0.39 → 0.0.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "An open, extensible monorepo task runner.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,10 +17,10 @@
17
17
  "node": ">=18"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@vzn/vx-linux-x64": "0.0.39",
21
- "@vzn/vx-linux-arm64": "0.0.39",
22
- "@vzn/vx-darwin-x64": "0.0.39",
23
- "@vzn/vx-darwin-arm64": "0.0.39"
20
+ "@vzn/vx-linux-x64": "0.0.40",
21
+ "@vzn/vx-linux-arm64": "0.0.40",
22
+ "@vzn/vx-darwin-x64": "0.0.40",
23
+ "@vzn/vx-darwin-arm64": "0.0.40"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
package/src/cli/help.ts CHANGED
@@ -49,7 +49,7 @@ export function helpText(pluginCommands: readonly string[] = []): string {
49
49
  ' vx why [TASK | PKG#TASK] [--run <runId>] [--format pretty|json] [--cache-dir <path>]',
50
50
  ' vx last [RUNID] [--list[=N]] [--format pretty|json] [--cache-dir <path>]',
51
51
  ' vx completions bash|zsh|fish',
52
- ' vx help',
52
+ ' vx help [VERB]',
53
53
  ' vx version',
54
54
  '',
55
55
  'Selection (for run):',
package/src/cli/index.ts CHANGED
@@ -32,9 +32,17 @@ export async function run(argv: readonly string[]): Promise<number> {
32
32
  case undefined:
33
33
  case '--help':
34
34
  case '-h':
35
- case 'help':
36
35
  printHelp(await pluginCommandHelp())
37
36
  return 0
37
+ case 'help': {
38
+ // `vx help run` is the same question as `vx run --help`. A plugin verb
39
+ // owns its own help, so anything but a core verb gets the whole
40
+ // reference, which lists the plugin verbs.
41
+ const verb = rest[0]
42
+ const core = verb !== undefined && (CORE_VERBS as readonly string[]).includes(verb)
43
+ printHelp(await pluginCommandHelp(), core ? verb : undefined)
44
+ return 0
45
+ }
38
46
  case '--version':
39
47
  case 'version':
40
48
  process.stdout.write(`vx ${VERSION}\n`)