fix(core): Improve formatting, logging, and rollback integrity in core modules

This commit is contained in:
2025-08-08 05:48:41 +00:00
parent c48f48fc8b
commit fd90cfe895
9 changed files with 147 additions and 28 deletions

View File

@@ -62,23 +62,23 @@ export let run = async () => {
gitzoneSmartcli.addCommand('format').subscribe(async (argvArg) => {
const config = GitzoneConfig.fromCwd();
const modFormat = await import('./mod_format/index.js');
// Handle rollback commands
if (argvArg.rollback) {
await modFormat.handleRollback(argvArg.rollback);
return;
}
if (argvArg['list-backups']) {
await modFormat.handleListBackups();
return;
}
if (argvArg['clean-backups']) {
await modFormat.handleCleanBackups();
return;
}
// Handle format with options
await modFormat.run({
dryRun: argvArg['dry-run'],
@@ -89,7 +89,7 @@ export let run = async () => {
detailed: argvArg.detailed,
interactive: argvArg.interactive !== false,
parallel: argvArg.parallel !== false,
verbose: argvArg.verbose
verbose: argvArg.verbose,
});
});