@synth1s/cloak 1.4.0 → 1.4.1
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/commands/switch.js +2 -8
package/package.json
CHANGED
package/src/commands/switch.js
CHANGED
|
@@ -59,14 +59,8 @@ export async function switchAccount(name, options = {}) {
|
|
|
59
59
|
} else {
|
|
60
60
|
console.log(chalk.dim(` Already installed in ${rcFile}`))
|
|
61
61
|
}
|
|
62
|
-
console.log(chalk.dim(`\n
|
|
63
|
-
console.log(chalk.dim(` source ${rcFile}\n`))
|
|
64
|
-
console.log(chalk.dim(` Then run:`))
|
|
65
|
-
console.log(chalk.dim(` claude account switch ${name}\n`))
|
|
62
|
+
console.log(chalk.dim(`\n Run: `) + chalk.white(`source ${rcFile} && cloak switch ${name}\n`))
|
|
66
63
|
} else {
|
|
67
|
-
console.log(chalk.dim(
|
|
68
|
-
console.log(` eval "$(cloak init)"`)
|
|
69
|
-
console.log(chalk.dim('\n Then reload and run:'))
|
|
70
|
-
console.log(chalk.dim(` claude account switch ${name}\n`))
|
|
64
|
+
console.log(chalk.dim(`\n Run: `) + chalk.white(`echo 'eval "$(cloak init)"' >> ${getRcFilePath()} && source ${getRcFilePath()} && cloak switch ${name}\n`))
|
|
71
65
|
}
|
|
72
66
|
}
|