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:
Tam Nhu Tran committed 2026-02-11 02:38:29 +07:00
1 parent 72ee3122bd
commit 2e85064b8a
5 files changed
+375

No files matched your search

+7
View File
@@ -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');