Conversation
Adds RFD 061, proposing an interactive configuration browser triggered by a bare `--cfg` flag (no value). When invoked, the wizard presents a filterable list of all `AppConfig` fields, lets the user search and select one, then shows a type-appropriate inline prompt (confirm for booleans, select for enums, text input for strings/integers, `$EDITOR` for complex/multiline types). The wizard produces a `Vec<KvAssignment>` — the same type that `--cfg KEY=VALUE` parsing produces — so its output feeds directly into the existing config pipeline. A confirmation step shows the collected values and the equivalent CLI command (normalised to the simplest flag form via alias reverse lookup and `CliRecord` reverse mapping from RFD 060), teaching users the CLI syntax over time. Implementation is planned in four phases: core loop and clap integration, `$EDITOR` escape hatch, polished field selector with documentation preview and visual markers, and finally equivalent-command output. Phases 1 and 2 deliver a functional wizard; phases 3 and 4 polish the experience. Signed-off-by: Jean Mertz <git@jeanmertz.com>
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.
Adds RFD 061, proposing an interactive configuration browser triggered by a bare
--cfgflag (no value). When invoked, the wizard presents a filterable list of allAppConfigfields, lets the user search and select one, then shows a type-appropriate inline prompt (confirm for booleans, select for enums, text input for strings/integers,$EDITORfor complex/multiline types).The wizard produces a
Vec<KvAssignment>— the same type that--cfg KEY=VALUEparsing produces — so its output feeds directly into the existing config pipeline. A confirmation step shows the collected values and the equivalent CLI command (normalised to the simplest flag form via alias reverse lookup andCliRecordreverse mapping from RFD 060), teaching users the CLI syntax over time.Implementation is planned in four phases: core loop and clap integration,
$EDITORescape hatch, polished field selector with documentation preview and visual markers, and finally equivalent-command output. Phases 1 and 2 deliver a functional wizard; phases 3 and 4 polish the experience.