@theholocron/cli 5.0.0-alpha.119 → 5.0.0-alpha.120
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/dist/cli.mjs +2 -9
- package/dist/cli.mjs.map +1 -1
- package/package.json +4 -4
package/dist/cli.mjs
CHANGED
|
@@ -1208,7 +1208,6 @@ async function runClone(input) {
|
|
|
1208
1208
|
* resolve (devDeps in a repo, or `pnpm exec`).
|
|
1209
1209
|
*/
|
|
1210
1210
|
const COMMAND_CONTEXTS = {
|
|
1211
|
-
version: "global",
|
|
1212
1211
|
clone: "global",
|
|
1213
1212
|
new: "global",
|
|
1214
1213
|
"upgrade node": "global",
|
|
@@ -8008,11 +8007,6 @@ const numeric = (value) => /^\d+$/.test(value) ? true : "enter a number";
|
|
|
8008
8007
|
* exclusively from `.husky/commit-msg "$1"`, never typed by a human.
|
|
8009
8008
|
*/
|
|
8010
8009
|
const COMMAND_REGISTRY = [
|
|
8011
|
-
{
|
|
8012
|
-
name: "version",
|
|
8013
|
-
description: "Print the CLI version",
|
|
8014
|
-
positionals: []
|
|
8015
|
-
},
|
|
8016
8010
|
{
|
|
8017
8011
|
name: "clone",
|
|
8018
8012
|
description: "Clone all repos in a GitHub org as siblings under a single directory",
|
|
@@ -8514,7 +8508,7 @@ let finishCommand = () => {};
|
|
|
8514
8508
|
/** Set by `.fail()` once it has printed an error, so the outer catch doesn't repeat it. */
|
|
8515
8509
|
let errorReported = false;
|
|
8516
8510
|
try {
|
|
8517
|
-
await yargs(hideBin(process.argv)).scriptName("").usage("holocron <command> [options]").parserConfiguration({ "populate--": true }).option("dry-run", {
|
|
8511
|
+
await yargs(hideBin(process.argv)).scriptName("").usage("holocron <command> [options]").version(CLI_VERSION).alias("version", "v").parserConfiguration({ "populate--": true }).option("dry-run", {
|
|
8518
8512
|
type: "boolean",
|
|
8519
8513
|
default: false,
|
|
8520
8514
|
describe: "Print what would be mutated without calling capability mutators. Commands branch on this; read-only commands ignore it."
|
|
@@ -8549,8 +8543,6 @@ try {
|
|
|
8549
8543
|
org: argv.org
|
|
8550
8544
|
});
|
|
8551
8545
|
finishCommand = startCommand(name);
|
|
8552
|
-
}).command("version", "Print the CLI version", () => {}, () => {
|
|
8553
|
-
console.log(`holocron ${CLI_VERSION}`);
|
|
8554
8546
|
}).command("clone", "Clone all repos in a GitHub org as siblings under a single directory", (y) => y.option("org", {
|
|
8555
8547
|
type: "string",
|
|
8556
8548
|
demandOption: true,
|
|
@@ -9410,6 +9402,7 @@ try {
|
|
|
9410
9402
|
}).command("$0", false, () => {}, async (argv) => {
|
|
9411
9403
|
await launchMenu(COMMAND_REGISTRY.filter((e) => e.group === "auth"), argv, "auth — choose a subcommand:", "Run `holocron auth --help` to see available auth subcommands.");
|
|
9412
9404
|
}), () => {}).command("$0", false, () => {}, async (argv) => {
|
|
9405
|
+
console.log(style.dim(`holocron v${CLI_VERSION}`));
|
|
9413
9406
|
await launchMenu(COMMAND_REGISTRY.filter((e) => !e.group), argv);
|
|
9414
9407
|
}).strict().help().epilogue(`Execution contexts:
|
|
9415
9408
|
global works from a bare 'npm i -g': ${commandsInContext("global").join(", ")}\n repo-aware needs ./holocron.config in cwd: ${commandsInContext("repo-aware").join(", ")}\n workspace also needs the plugin packages: ${commandsInContext("workspace").join(", ")}\n https://theholocron.github.io/holocron/execution-contexts`).fail((msg, err) => {
|