@synth1s/cloak 2.0.1 → 2.0.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/package.json +1 -1
- package/src/cli.js +19 -5
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -24,6 +24,20 @@ program
|
|
|
24
24
|
.name('cloak')
|
|
25
25
|
.description('Cloak your Claude. Switch identities in seconds.')
|
|
26
26
|
.version(pkg.version)
|
|
27
|
+
.addHelpText('after', `
|
|
28
|
+
Quick start:
|
|
29
|
+
cloak create work Save your current Claude session
|
|
30
|
+
cloak create home Save another session
|
|
31
|
+
cloak switch work Switch to a cloak
|
|
32
|
+
cloak list See all your cloaks
|
|
33
|
+
|
|
34
|
+
Shell integration (recommended):
|
|
35
|
+
eval "$(cloak init)" Add to .bashrc/.zshrc for:
|
|
36
|
+
claude -a work Switch and launch Claude in one step
|
|
37
|
+
claude account switch work Same as cloak switch
|
|
38
|
+
claude account list Same as cloak list
|
|
39
|
+
|
|
40
|
+
Learn more: https://github.com/synth1s/cloak`)
|
|
27
41
|
|
|
28
42
|
program
|
|
29
43
|
.command('create [name]')
|
|
@@ -37,10 +51,10 @@ program
|
|
|
37
51
|
.command('switch <name>')
|
|
38
52
|
.alias('use')
|
|
39
53
|
.description('Wear a different cloak')
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
if (!
|
|
43
|
-
return switchAccount(name, { printEnv
|
|
54
|
+
.action((name) => {
|
|
55
|
+
const printEnv = process.argv.includes('--print-env')
|
|
56
|
+
if (!printEnv) renderContextBar('switch')
|
|
57
|
+
return switchAccount(name, { printEnv })
|
|
44
58
|
})
|
|
45
59
|
|
|
46
60
|
program
|
|
@@ -85,7 +99,7 @@ program
|
|
|
85
99
|
|
|
86
100
|
program
|
|
87
101
|
.command('init')
|
|
88
|
-
.description('Output shell integration code
|
|
102
|
+
.description('Output shell integration code')
|
|
89
103
|
.action(initShell)
|
|
90
104
|
|
|
91
105
|
program.parse()
|