mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 14:16:43 +00:00
fix(cli): route 'ccs copilot' without subcommand to help
This commit is contained in:
+2
-2
@@ -339,8 +339,8 @@ async function main(): Promise<void> {
|
||||
}
|
||||
|
||||
// Special case: copilot command (GitHub Copilot integration)
|
||||
if (firstArg === 'copilot' && args.length > 1) {
|
||||
// `ccs copilot <subcommand>` - route to copilot command handler
|
||||
if (firstArg === 'copilot') {
|
||||
// `ccs copilot [subcommand]` - route to copilot command handler
|
||||
const { handleCopilotCommand } = await import('./commands/copilot-command');
|
||||
const exitCode = await handleCopilotCommand(args.slice(1));
|
||||
process.exit(exitCode);
|
||||
|
||||
Reference in New Issue
Block a user