cc-hub-cli 1.0.11 → 1.1.2
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 +10 -4
- package/dist/index.js +622 -337
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Manage Claude CLI profiles, hooks, and sessions — one tool, all in one place.
|
|
4
4
|
|
|
5
|
-
> **Note:**
|
|
5
|
+
> **Note:** macOS, Linux, and Windows supported.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -100,9 +100,12 @@ cc-hub hook disable -i <index> [-i <index>] # Disable active h
|
|
|
100
100
|
**Examples:**
|
|
101
101
|
|
|
102
102
|
```bash
|
|
103
|
-
# Desktop notification when Claude finishes
|
|
103
|
+
# Desktop notification when Claude finishes (macOS)
|
|
104
104
|
cc-hub hook add -e Stop -c 'osascript -e "display notification \"Done\""'
|
|
105
105
|
|
|
106
|
+
# Desktop notification when Claude finishes (Windows PowerShell)
|
|
107
|
+
cc-hub hook add -e Stop -c 'powershell -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show(\"Claude Done\")"'
|
|
108
|
+
|
|
106
109
|
# Hook only for Bash tool usage
|
|
107
110
|
cc-hub hook add -e PreToolUse -m Bash -c 'echo "Running bash..."'
|
|
108
111
|
|
|
@@ -145,10 +148,13 @@ cc-hub session clean -d 60 --dry-run
|
|
|
145
148
|
|
|
146
149
|
```bash
|
|
147
150
|
# zsh — add to ~/.zshrc
|
|
148
|
-
eval "$(cc-hub
|
|
151
|
+
eval "$(cc-hub completion zsh)"
|
|
149
152
|
|
|
150
153
|
# bash — add to ~/.bashrc
|
|
151
|
-
eval "$(cc-hub
|
|
154
|
+
eval "$(cc-hub completion bash)"
|
|
155
|
+
|
|
156
|
+
# PowerShell — add to $PROFILE
|
|
157
|
+
Invoke-Expression (& cc-hub completion powershell | Out-String)
|
|
152
158
|
```
|
|
153
159
|
|
|
154
160
|
Completes subcommands, profile names, and event types.
|