@order3000/cli 0.2.0 → 0.4.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/README.md +32 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -50,6 +50,38 @@ in macOS Keychain / Linux libsecret.
|
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
|
+
## Shell completion (tab autocomplete)
|
|
54
|
+
|
|
55
|
+
`order3000 completion <shell>` prints a completion script for your
|
|
56
|
+
shell. Pipe it to your shell's completions directory once and tab
|
|
57
|
+
autocomplete works on every `order3000 …` invocation thereafter.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
# zsh — Homebrew on macOS
|
|
61
|
+
order3000 completion zsh > "$(brew --prefix)/share/zsh/site-functions/_order3000"
|
|
62
|
+
autoload -Uz compinit && compinit
|
|
63
|
+
|
|
64
|
+
# zsh — anywhere else (any directory in $fpath works)
|
|
65
|
+
order3000 completion zsh > /usr/local/share/zsh/site-functions/_order3000
|
|
66
|
+
|
|
67
|
+
# bash
|
|
68
|
+
order3000 completion bash > /usr/local/etc/bash_completion.d/order3000
|
|
69
|
+
# or for the current session only:
|
|
70
|
+
source <(order3000 completion bash)
|
|
71
|
+
|
|
72
|
+
# fish
|
|
73
|
+
order3000 completion fish > ~/.config/fish/completions/order3000.fish
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
After install, hit `<tab>` after `order3000 ` and you'll see `auth`,
|
|
77
|
+
`articles`, `venues`, `locale`, etc. — drill into any group and tab
|
|
78
|
+
again for its subcommands (`articles slug <tab>` → `get`, `set`).
|
|
79
|
+
|
|
80
|
+
Re-run `order3000 completion <shell> > …` after upgrading the CLI when
|
|
81
|
+
new top-level groups or major subcommands ship.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
53
85
|
## First run: `auth login`
|
|
54
86
|
|
|
55
87
|
```sh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@order3000/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Agent-friendly command-line interface for the order3000 platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"consola": "^3.4.2",
|
|
20
20
|
"zod": "^3.23.8",
|
|
21
21
|
"zod-to-json-schema": "^3.24.5",
|
|
22
|
-
"order3000": "0.
|
|
22
|
+
"order3000": "0.21.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^24.10.0",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"tsup": "^8.3.5",
|
|
29
29
|
"tsx": "^4.19.2",
|
|
30
30
|
"typescript": "^5.9.3",
|
|
31
|
-
"@kolaveri/prettier-config": "1.0.6",
|
|
32
31
|
"@kolaveri/eslint-config": "1.6.0",
|
|
32
|
+
"@kolaveri/prettier-config": "1.0.6",
|
|
33
33
|
"@kolaveri/tsconfig": "1.0.1"
|
|
34
34
|
},
|
|
35
35
|
"prettier": "@kolaveri/prettier-config",
|