@vlandoss/starter 0.4.1-git-53b6b02.0 → 0.4.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 +10 -0
- package/dist/cli.usage.kdl +2 -2
- package/package.json +3 -3
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.
|
package/dist/cli.usage.kdl
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @generated by @usage-spec/commander from Commander.js metadata
|
|
2
2
|
name vland
|
|
3
3
|
bin vland
|
|
4
|
-
version "0.4.1-git-
|
|
4
|
+
version "0.4.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 🐚 (
|
|
7
|
+
cmd completion help="print shell completion script 🐚 (usage)" {
|
|
8
8
|
long_help "Prints a shell completion script for vland. Add to your shell rc file:\n\n bash: eval \"$(vland completion bash)\"\n zsh: eval \"$(vland completion zsh)\"\n fish: vland completion fish | source"
|
|
9
9
|
arg <shell> help="target shell" {
|
|
10
10
|
choices bash zsh fish
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vlandoss/starter",
|
|
3
|
-
"version": "0.4.1-git-
|
|
3
|
+
"version": "0.4.1-git-a7631bf.0",
|
|
4
4
|
"description": "The CLI to init a new project in Variable Land",
|
|
5
5
|
"homepage": "https://github.com/variableland/dx/tree/main/packages/starter#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@usage-spec/commander": "1.1.0",
|
|
35
35
|
"commander": "14.0.3",
|
|
36
36
|
"node-plop": "0.32.3",
|
|
37
|
-
"@vlandoss/
|
|
38
|
-
"@vlandoss/
|
|
37
|
+
"@vlandoss/clibuddy": "0.4.1-git-a7631bf.0",
|
|
38
|
+
"@vlandoss/loggy": "0.2.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|