@root-signals/scorable-cli 0.11.0 → 0.12.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoDpC,wBAAgB,SAAS,IAAI,OAAO,CAwBnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoDpC,wBAAgB,SAAS,IAAI,OAAO,CA+BnC"}
package/dist/index.js CHANGED
@@ -55,6 +55,13 @@ export function createCli() {
55
55
  .version(version, "-V, --version", "Print version number")
56
56
  .addHelpText("before", buildBanner(version))
57
57
  .addHelpText("after", buildGettingStarted())
58
+ .option("--api-url <url>", "API base URL (overrides SCORABLE_API_URL env var)")
59
+ .hook("preAction", (thisCommand) => {
60
+ const opts = thisCommand.optsWithGlobals();
61
+ if (opts.apiUrl) {
62
+ process.env["SCORABLE_API_URL"] = opts.apiUrl;
63
+ }
64
+ })
58
65
  .exitOverride()
59
66
  .action(() => {
60
67
  program.outputHelp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@root-signals/scorable-cli",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "CLI for Scorable",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Scorable",