@theholocron/cli 5.0.0-alpha.121 → 5.0.0-alpha.122
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 -5
- package/dist/cli.mjs +289 -78
- package/dist/cli.mjs.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -35,6 +35,21 @@ The picked command spawns as a normal `holocron <command> …` invocation —
|
|
|
35
35
|
through. A non-interactive shell (CI, a script, a pipe) gets the old
|
|
36
36
|
hard-failure message instead of hanging on a prompt.
|
|
37
37
|
|
|
38
|
+
For a command whose handler honours `--dry-run` (most of them — everything
|
|
39
|
+
except `auth *` and `config show`), the menu always previews it first — a
|
|
40
|
+
dry run doesn't mutate anything, so there's nothing to ask permission for —
|
|
41
|
+
then asks the one real decision:
|
|
42
|
+
|
|
43
|
+
```console
|
|
44
|
+
...dry-run output...
|
|
45
|
+
? Dry run complete — proceed with the real run? › yes
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
A preview that reports nothing would actually change (e.g. `clone` finding
|
|
49
|
+
every repo already cloned) skips that question too — there'd be nothing for
|
|
50
|
+
the real run to do either. `--skip-dry-run` opts out of the preview
|
|
51
|
+
entirely, straight to the real run, for when you already know what you want.
|
|
52
|
+
|
|
38
53
|
## Execution contexts
|
|
39
54
|
|
|
40
55
|
Every command is tagged with how much of a repo it needs:
|
|
@@ -472,16 +487,21 @@ holocron auth list # show all stored providers
|
|
|
472
487
|
## Logging
|
|
473
488
|
|
|
474
489
|
Operational output goes through `@theholocron/observability/logger` — separate
|
|
475
|
-
from the user-facing `print` surface.
|
|
490
|
+
from the user-facing `print` surface. Local/interactive runs are quiet by
|
|
491
|
+
default: no colorized or raw structured console output, regardless of the
|
|
492
|
+
resolved level (Axiom shipping, when configured, is unaffected). CI is
|
|
493
|
+
untouched — its existing stdout output still appears. Global flags:
|
|
476
494
|
|
|
477
495
|
```sh
|
|
478
|
-
holocron doctor --
|
|
479
|
-
holocron doctor --
|
|
496
|
+
holocron doctor --log debug # show console output at this level (opt back in)
|
|
497
|
+
holocron doctor --verbose # log level → debug, and shows console output
|
|
498
|
+
holocron doctor --quiet # log level → error, and shows console output
|
|
480
499
|
holocron doctor --debug # print "Run ID: <uuid>" at command end for Axiom lookup
|
|
481
500
|
```
|
|
482
501
|
|
|
483
|
-
Level resolution (highest priority first): `--
|
|
484
|
-
`HOLOCRON_LOG_LEVEL` → `log.level` in `holocron.config` →
|
|
502
|
+
Level resolution (highest priority first): `--log <level>` → `--verbose` /
|
|
503
|
+
`--quiet` → `HOLOCRON_LOG_LEVEL` → `log.level` in `holocron.config` →
|
|
504
|
+
`"info"`.
|
|
485
505
|
|
|
486
506
|
```ts
|
|
487
507
|
export default defineConfig({
|