mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-14 17:41:22 +08:00
refactor: 移除调试日志相关代码,简化历史保存逻辑
This commit is contained in:
@@ -306,15 +306,17 @@ export async function installCommand(options: InstallOptions): Promise<void> {
|
||||
info(` Files in manifest: ${existingManifest.files?.length || 0}`);
|
||||
info(` Installed: ${new Date(existingManifest.installation_date).toLocaleDateString()}`);
|
||||
|
||||
const { backup } = await inquirer.prompt([{
|
||||
type: 'confirm',
|
||||
name: 'backup',
|
||||
message: 'Create backup before reinstalling?',
|
||||
default: true
|
||||
}]);
|
||||
if (!options.force) {
|
||||
const { backup } = await inquirer.prompt([{
|
||||
type: 'confirm',
|
||||
name: 'backup',
|
||||
message: 'Create backup before reinstalling?',
|
||||
default: true
|
||||
}]);
|
||||
|
||||
if (backup) {
|
||||
await createBackup(existingManifest);
|
||||
if (backup) {
|
||||
await createBackup(existingManifest);
|
||||
}
|
||||
}
|
||||
|
||||
// Clean based on manifest records
|
||||
@@ -495,7 +497,7 @@ export async function installCommand(options: InstallOptions): Promise<void> {
|
||||
});
|
||||
|
||||
// Install Git Bash fix on Windows
|
||||
if (platform() === 'win32') {
|
||||
if (platform() === 'win32' && !options.force) {
|
||||
console.log('');
|
||||
const { installFix } = await inquirer.prompt([{
|
||||
type: 'confirm',
|
||||
|
||||
Reference in New Issue
Block a user