fix(cli): resolve syntax error in gims.js
This commit is contained in:
+1
-14
@@ -1719,20 +1719,7 @@ program.command('fix')
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(`\n${color.bold('🤖 AI Analysis:')}`);
|
|
||||||
console.log(response.trim());
|
|
||||||
} catch (e) {
|
|
||||||
Progress.stop('');
|
|
||||||
console.log(color.yellow('AI Analysis failed, falling back to heuristics.'));
|
|
||||||
// ... heuristic fallback code ...
|
|
||||||
let rec = '';
|
|
||||||
if (ahead > 0 && behind === 0) rec = 'Push (g push)';
|
|
||||||
else if (behind > 0 && ahead === 0) rec = 'Pull (g pull)';
|
|
||||||
else rec = 'Rebase (g fix --rebase)';
|
|
||||||
console.log(`Recommendation: ${rec}`);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Show interactive menu
|
// Show interactive menu
|
||||||
console.log(color.bold('🔧 Fix Options:\n'));
|
console.log(color.bold('🔧 Fix Options:\n'));
|
||||||
|
|||||||
Reference in New Issue
Block a user