mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 06:17:09 +00:00
fix(cursor): show auto-detect error message, add subcommand sync comment
This commit is contained in:
@@ -536,6 +536,7 @@ async function main(): Promise<void> {
|
||||
// Only route to command handler for known subcommands, otherwise treat as profile
|
||||
// Note: Bare `ccs cursor` shows help (unlike copilot which falls through to profile)
|
||||
// This is intentional — cursor has no profile-switching mode
|
||||
// Keep in sync with cursor-command.ts switch cases
|
||||
const CURSOR_SUBCOMMANDS = ['auth', 'status', 'models', 'start', 'stop', 'help', '--help', '-h'];
|
||||
if (firstArg === 'cursor' && (args.length === 1 || CURSOR_SUBCOMMANDS.includes(args[1]))) {
|
||||
// `ccs cursor <subcommand>` - route to cursor command handler
|
||||
|
||||
@@ -107,7 +107,11 @@ async function handleAuth(): Promise<number> {
|
||||
|
||||
// Fall back to manual import
|
||||
console.log('');
|
||||
console.log('Auto-detection failed. Please provide credentials manually.');
|
||||
if (autoResult.error) {
|
||||
console.log(`Auto-detection failed: ${autoResult.error}`);
|
||||
} else {
|
||||
console.log('Auto-detection failed. Please provide credentials manually.');
|
||||
}
|
||||
console.log('');
|
||||
console.log('To find your Cursor credentials:');
|
||||
console.log(' 1. Open Cursor IDE');
|
||||
|
||||
Reference in New Issue
Block a user