@order3000/cli 0.3.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.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. 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.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,
@@ -28,9 +28,9 @@
28
28
  "tsup": "^8.3.5",
29
29
  "tsx": "^4.19.2",
30
30
  "typescript": "^5.9.3",
31
- "@kolaveri/tsconfig": "1.0.1",
31
+ "@kolaveri/eslint-config": "1.6.0",
32
32
  "@kolaveri/prettier-config": "1.0.6",
33
- "@kolaveri/eslint-config": "1.6.0"
33
+ "@kolaveri/tsconfig": "1.0.1"
34
34
  },
35
35
  "prettier": "@kolaveri/prettier-config",
36
36
  "scripts": {