v2.1.0
Minor Changes
-
9dab921: Add
--dry-runand--jsonflags for all major commandsNew Features
-
--dry-runflag — Available onbranch,multi-branch, andextractcommands. Shows a complete preview of what would happen (files, branches, commit messages, settings) without performing any git operations. -
--jsonflag — Available onlist,branch,multi-branch, andextractcommands. Outputs machine-readable JSON to stdout and suppresses all human-readable log messages. Works with both normal execution and--dry-runmode.
Details
list --json: Outputs{ command, files, filters }or{ command, grouped, filters }when used with--groupbranch --dry-run: Shows owner, branch name, branch existence, commit message, matched/excluded files, and push/PR/flag settingsbranch --json: Outputs branch result with success status, files, push state, and PR infomulti-branch --dry-run: Shows per-owner breakdown (branch, message, files), uncovered files, unowned files, and summary totalsmulti-branch --json: Outputs aggregate results with per-owner success/failure detailsextract --dry-run: Shows source, compare target, files to extract, excluded files, and filter settingsextract --json: Outputs extracted file list and source metadata- Silent mode suppresses all
console.log/warn/erroroutput when--jsonis active; JSON is written via saved originalconsole.log pushBranchingit.tssupports asilentoption to switchstdiofrom"inherit"to"pipe", preventing output leaks during JSON moderecovercommand is intentionally excluded from both flags (interactive with prompts)
-