mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-04 16:16:46 +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)
|
// Special case: copilot command (GitHub Copilot integration)
|
||||||
if (firstArg === 'copilot' && args.length > 1) {
|
if (firstArg === 'copilot') {
|
||||||
// `ccs copilot <subcommand>` - route to copilot command handler
|
// `ccs copilot [subcommand]` - route to copilot command handler
|
||||||
const { handleCopilotCommand } = await import('./commands/copilot-command');
|
const { handleCopilotCommand } = await import('./commands/copilot-command');
|
||||||
const exitCode = await handleCopilotCommand(args.slice(1));
|
const exitCode = await handleCopilotCommand(args.slice(1));
|
||||||
process.exit(exitCode);
|
process.exit(exitCode);
|
||||||
|
|||||||
Reference in New Issue
Block a user