feat(mod_format): Add check-only formatting with interactive diff preview; make formatting default to dry-run and extend formatting API

This commit is contained in:
2025-12-14 16:53:18 +00:00
parent 6bd2d35992
commit f444a04876
10 changed files with 192 additions and 30 deletions

View File

@@ -80,7 +80,9 @@ export let run = async () => {
}
// Handle format with options
// Default is dry-mode, use --write/-w to apply changes
await modFormat.run({
write: argvArg.write || argvArg.w,
dryRun: argvArg['dry-run'],
yes: argvArg.yes,
planOnly: argvArg['plan-only'],