feat: reshape init's wizard flags (7 -> 6)#15
Merged
Conversation
BREAKING (pre-1.0, no alias): fold init's --no-wizard and --wizard-answers <file> into one --wizard=off|interactive|answers:<file> mode flag, and narrow --yes to confirmation-assent only. --wizard=off skips the wizard (was --no-wizard); --wizard=interactive forces the TUI; --wizard=answers:<file> drives it from a TOML file (was --wizard-answers); default (unset) is interactive on a real tty pair, else off. --yes no longer skips the wizard — it assents only to init's confirmations (the --github repo-create confirm and the closing --apply). --repair is unchanged but now conflicts with --wizard=off rather than --yes, so --repair --yes on a terminal is valid and --repair --wizard=answers:<file> keeps the scripted-repair path. Final init surface: --fresh, --apply, --github, --wizard, --yes, --repair; CLI reference regenerated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING (pre-1.0, no alias): reshapes
ferry init's wizard flags 7 -> 6.--no-wizardand--wizard-answers <file>fold into one--wizard=off|interactive|answers:<file>mode flag (off = skip the wizard; interactive = force the TUI, needs a tty pair; answers: = drive from a TOML file). Default (unset): interactive on a real tty pair, else off.--yesnarrows to confirmation-assent only — it assents to the--githubrepo-create confirm and the closing--apply, and no longer skips the wizard (use--wizard=off).--repairunchanged in intent but now conflicts with--wizard=offrather than--yes, so--repair --yeson a terminal is valid and--repair --wizard=answers:<file>keeps the scripted-repair path.Final init surface:
--fresh,--apply,--github,--wizard,--yes,--repair.Verified: gofmt/vet/
go test ./.../full evals green; CLI reference regenerated; removed flags error as unknown;--wizard=bogusand--repair --wizard=offgive clear errors; non-interactiveinit --github ... --yesintact. Reviewed for security (the --github repo-creation consent gate still requires --yes non-interactively — unchanged) and correctness (default path behaviour-preserving, --yes decoupled from the wizard, --repair validation across the full matrix).