mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-19 08:14:52 +00:00
feat(env): add ccs env command for third-party tool integration
New `ccs env <profile>` command exports shell-evaluable environment variables for OpenCode, Cursor, Continue, and other third-party tools. Supports --format (openai|anthropic|raw) and --shell (auto|bash|fish| powershell) flags. Auto-detects shell from $SHELL env var. Closes #503
This commit is contained in:
1 parent
72ee3122bd
commit
2e85064b8a
5 files changed
+375
No files matched your search
@@ -450,6 +450,13 @@ async function main(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
// Special case: env command (export env vars for third-party tools)
|
||||
if (firstArg === 'env') {
|
||||
const { handleEnvCommand } = await import('./commands/env-command');
|
||||
await handleEnvCommand(args.slice(1));
|
||||
return;
|
||||
}
|
||||
|
||||
// Special case: setup command (first-time wizard)
|
||||
if (firstArg === 'setup' || firstArg === '--setup') {
|
||||
const { handleSetupCommand } = await import('./commands/setup-command');
|
||||
|
||||
Reference in new issue
Block a user