@theholocron/cli 4.17.1 → 4.18.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.
- package/README.md +25 -0
- package/dist/cli.mjs +394 -125
- package/dist/cli.mjs.map +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -14,6 +14,27 @@ holocron --help
|
|
|
14
14
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
## Interactive mode
|
|
18
|
+
|
|
19
|
+
Run `holocron` with no command, a parent command with no subcommand
|
|
20
|
+
(`holocron auth`, `holocron skills`, `holocron upgrade`), or a leaf command
|
|
21
|
+
missing a required positional (`holocron deploy`, `holocron secret set`), and
|
|
22
|
+
you get a prompt instead of a `--help` dead end:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
$ holocron
|
|
26
|
+
? What would you like to do? › dep
|
|
27
|
+
────────────────────────────────────────────────
|
|
28
|
+
❯ deploy Trigger a deployment via the configured `deployment` capability
|
|
29
|
+
|
|
30
|
+
? Branch to deploy: › main
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The picked command spawns as a normal `holocron <command> …` invocation —
|
|
34
|
+
`--token`, `--org`, `--cwd`, and `--dry-run` on the original invocation carry
|
|
35
|
+
through. A non-interactive shell (CI, a script, a pipe) gets the old
|
|
36
|
+
hard-failure message instead of hanging on a prompt.
|
|
37
|
+
|
|
17
38
|
## Execution contexts
|
|
18
39
|
|
|
19
40
|
Every command is tagged with how much of a repo it needs:
|
|
@@ -426,6 +447,10 @@ holds the orchestration + the Holocron-specific credential resolution
|
|
|
426
447
|
- `src/commands/` — `setup`, `sync`, `doctor`, `deploy`, `secret set`,
|
|
427
448
|
`secrets sync`, `publish`, `bump-versions`, `sync-github`, `upgrade node`,
|
|
428
449
|
`upgrade deps`, `plugin create`, `auth`
|
|
450
|
+
- `src/interactive-menu.ts` — the interactive fallback: `COMMAND_REGISTRY`,
|
|
451
|
+
`launchMenu` (Layers 1–2, picks + spawns a fresh `holocron <command>`),
|
|
452
|
+
`promptForPositionals` (Layer 3, called inline from each leaf command's
|
|
453
|
+
`cli.ts` handler)
|
|
429
454
|
|
|
430
455
|
## Status
|
|
431
456
|
|