feat: unify CLI dry-run and write confirmation

This commit is contained in:
gitea committed 2026-09-11 16:53:14 +08:00
1 parent 639aaa9271
commit 45eb83a609
19 files changed
+506 -71

No files matched your search

+4
View File
@@ -13,6 +13,8 @@ export function initCorpRuntime(
stateless?: boolean;
stateful?: boolean;
jsonMode?: boolean;
dryRun?: boolean;
confirmed?: boolean;
outputOptions?: OutputOptions;
appRoot?: string;
entryFile?: string;
@@ -48,6 +50,8 @@ export function initCorpRuntime(
corpContext,
selectedCorp,
jsonMode: options.jsonMode ?? false,
dryRun: options.dryRun ?? false,
confirmed: options.confirmed ?? false,
outputOptions: options.outputOptions,
appRoot: options.appRoot,
entryFile: options.entryFile,