@forkline/cli 0.38.0 → 0.39.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 +43 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -58,6 +58,49 @@ If npm installation fails or you need a specific platform binary:
|
|
|
58
58
|
2. Extract the `forkline` binary
|
|
59
59
|
3. Set `FORKLINE_BINARY` to point to it
|
|
60
60
|
|
|
61
|
+
## Shell completions
|
|
62
|
+
|
|
63
|
+
Enable completions with one command (auto-detects your shell):
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
forkline completions install
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Or specify a shell explicitly:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
forkline completions install zsh
|
|
73
|
+
forkline completions install bash
|
|
74
|
+
forkline completions install fish
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Manual installation (if `completions install` doesn't work for your setup):
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# zsh (oh-my-zsh)
|
|
81
|
+
mkdir -p "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/completions"
|
|
82
|
+
forkline completions zsh > "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/completions/_forkline"
|
|
83
|
+
exec zsh
|
|
84
|
+
|
|
85
|
+
# zsh (plain — user directory)
|
|
86
|
+
mkdir -p ~/.zfunc && forkline completions zsh > ~/.zfunc/_forkline
|
|
87
|
+
# Add to ~/.zshrc (fpath BEFORE compinit):
|
|
88
|
+
# fpath=($HOME/.zfunc $fpath)
|
|
89
|
+
# autoload -Uz compinit && compinit
|
|
90
|
+
|
|
91
|
+
# bash (per-user)
|
|
92
|
+
mkdir -p ~/.local/share/bash-completion/completions
|
|
93
|
+
forkline completions bash > ~/.local/share/bash-completion/completions/forkline
|
|
94
|
+
|
|
95
|
+
# fish
|
|
96
|
+
mkdir -p ~/.config/fish/completions
|
|
97
|
+
forkline completions fish > ~/.config/fish/completions/forkline.fish
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Supported shells: `bash`, `zsh`, `fish`, `powershell`, `elvish`. Run `forkline completions <shell>` to print the script to stdout.
|
|
101
|
+
|
|
102
|
+
Full instructions: <https://forkline.dev/docs/reference/cli#forkline-completions-shell>
|
|
103
|
+
|
|
61
104
|
## Troubleshooting
|
|
62
105
|
|
|
63
106
|
### "Platform package not installed"
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forkline/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Forkline CLI - OpenCode runner management",
|
|
5
5
|
"bin": {
|
|
6
6
|
"forkline": "./bin/forkline.js"
|
|
7
7
|
},
|
|
8
8
|
"optionalDependencies": {
|
|
9
|
-
"@forkline/cli-darwin-arm64": "0.
|
|
10
|
-
"@forkline/cli-darwin-x64": "0.
|
|
11
|
-
"@forkline/cli-linux-arm64-gnu": "0.
|
|
12
|
-
"@forkline/cli-linux-arm64-musl": "0.
|
|
13
|
-
"@forkline/cli-linux-x64-gnu": "0.
|
|
14
|
-
"@forkline/cli-linux-x64-musl": "0.
|
|
15
|
-
"@forkline/cli-win32-arm64": "0.
|
|
16
|
-
"@forkline/cli-win32-x64": "0.
|
|
9
|
+
"@forkline/cli-darwin-arm64": "0.39.0",
|
|
10
|
+
"@forkline/cli-darwin-x64": "0.39.0",
|
|
11
|
+
"@forkline/cli-linux-arm64-gnu": "0.39.0",
|
|
12
|
+
"@forkline/cli-linux-arm64-musl": "0.39.0",
|
|
13
|
+
"@forkline/cli-linux-x64-gnu": "0.39.0",
|
|
14
|
+
"@forkline/cli-linux-x64-musl": "0.39.0",
|
|
15
|
+
"@forkline/cli-win32-arm64": "0.39.0",
|
|
16
|
+
"@forkline/cli-win32-x64": "0.39.0"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=18"
|