@vlandoss/run-run 0.5.1-git-53b6b02.0 → 0.5.1-git-a7631bf.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/bin CHANGED
@@ -30,6 +30,16 @@ if [ "$1" = "completion" ]; then
30
30
  # Unknown shell or `--help`: fall through to Node so Commander prints help/errors.
31
31
  fi
32
32
 
33
+ # `--usage` emits a KDL spec for downstream parsers (e.g. `usage generate
34
+ # completion`). Force NO_COLOR so command summaries don't leak ANSI escapes
35
+ # into the spec — colors are presentation, KDL is data.
36
+ for arg in "$@"; do
37
+ if [ "$arg" = "--usage" ]; then
38
+ export NO_COLOR=1
39
+ break
40
+ fi
41
+ done
42
+
33
43
  # In the source repo (tsdown.config.ts present, NOT shipped in the npm tarball),
34
44
  # always run from src/ so live edits show up. In a published install, use the
35
45
  # bundled dist/run.mjs.
@@ -1,46 +1,46 @@
1
1
  // @generated by @usage-spec/commander from Commander.js metadata
2
2
  name rr
3
3
  bin rr
4
- version "0.5.1-git-53b6b02.0"
4
+ version "0.5.1-git-a7631bf.0"
5
5
  usage "[options] <command...>"
6
6
  flag --usage help="print KDL spec for this CLI (https://kdl.dev)"
7
- cmd completion help="print shell completion script 🐚 (\u{1b}[38;2;36;197;94musage\u{1b}[39m)" {
7
+ cmd completion help="print shell completion script 🐚 (usage)" {
8
8
  long_help "Prints a shell completion script for rr. Add to your shell rc file:\n\n bash: eval \"$(rr completion bash)\"\n zsh: eval \"$(rr completion zsh)\"\n fish: rr completion fish | source"
9
9
  arg <shell> help="target shell" {
10
10
  choices bash zsh fish
11
11
  }
12
12
  }
13
- cmd build:lib help="build a ts library 🏗️ (\u{1b}[38;2;255;126;24mtsdown\u{1b}[39m)" {
13
+ cmd build:lib help="build a ts library 🏗️ (tsdown)" {
14
14
  long_help "Compiles TypeScript code into JavaScript and generates type declaration files, making it ready for distribution."
15
15
  cmd doctor help="check if the underlying tool is working correctly"
16
16
  }
17
- cmd jsc help="check format and lint 🔍 (\u{1b}[38;2;97;165;250mbiome\u{1b}[39m)" {
17
+ cmd jsc help="check format and lint 🔍 (biome)" {
18
18
  alias jscheck check
19
19
  long_help "Checks the code for formatting and linting issues, ensuring it adheres to the defined style and quality standards."
20
20
  flag --fix help="try to fix issues automatically"
21
21
  flag --fix-staged help="try to fix staged files only"
22
22
  cmd doctor help="check if the underlying tool is working correctly"
23
23
  }
24
- cmd tsc help="check typescript errors 🧩 (\u{1b}[38;2;49;120;198mtsc\u{1b}[39m)" {
24
+ cmd tsc help="check typescript errors 🧩 (tsc)" {
25
25
  alias tscheck
26
26
  long_help "Checks the TypeScript code for type errors, ensuring that the code adheres to the defined type constraints and helps catch potential issues before runtime."
27
27
  cmd doctor help="check if the underlying tool is working correctly"
28
28
  }
29
- cmd lint help="check & fix lint errors 🔍 (\u{1b}[38;2;97;165;250mbiome\u{1b}[39m)" {
29
+ cmd lint help="check & fix lint errors 🔍 (biome)" {
30
30
  long_help "Checks the code for linting issues and optionally fixes them, ensuring it adheres to the defined quality standards."
31
31
  flag "-c --check" help="check if the code is valid" default=#true
32
32
  flag --fix help="try to fix all the code"
33
33
  cmd doctor help="check if the underlying tool is working correctly"
34
34
  }
35
- cmd format help="check & fix format errors 🎨 (\u{1b}[38;2;97;165;250mbiome\u{1b}[39m)" {
35
+ cmd format help="check & fix format errors 🎨 (biome)" {
36
36
  long_help "Checks the code for formatting issues and optionally fixes them, ensuring it adheres to the defined style standards."
37
37
  flag --fix help="format all the code"
38
38
  cmd doctor help="check if the underlying tool is working correctly"
39
39
  }
40
- cmd test:static help="run static tests 🔬 (\u{1b}[38;2;232;114;42mrun-run\u{1b}[39m)" {
40
+ cmd test:static help="run static tests 🔬 (run-run)" {
41
41
  long_help "Runs static tests, including linting, formatting checks, and TypeScript type checking, to ensure code quality and correctness without executing the code."
42
42
  }
43
- cmd clean help="delete dirty files 🗑️ (\u{1b}[38;2;124;114;112mrimraf\u{1b}[39m)" {
43
+ cmd clean help="delete dirty files 🗑️ (rimraf)" {
44
44
  long_help "Deletes generated files and folders such as 'dist', 'node_modules', and lock files to ensure a clean state."
45
45
  flag --only-dist help="delete 'dist' folders only"
46
46
  flag --dry-run help="outputs the paths that would be deleted"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/run-run",
3
- "version": "0.5.1-git-53b6b02.0",
3
+ "version": "0.5.1-git-a7631bf.0",
4
4
  "description": "The CLI toolbox to fullstack common scripts in Variable Land",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/packages/run-run#readme",
6
6
  "bugs": {
@@ -63,7 +63,7 @@
63
63
  "rimraf": "6.1.3",
64
64
  "tsdown": "0.21.10",
65
65
  "typescript": "6.0.3",
66
- "@vlandoss/clibuddy": "0.4.1-git-53b6b02.0",
66
+ "@vlandoss/clibuddy": "0.4.1-git-a7631bf.0",
67
67
  "@vlandoss/loggy": "0.2.0"
68
68
  },
69
69
  "devDependencies": {