Commit 54cf780
authored
docs(rfd): Add RFD 061 for interactive config browser (#468)
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>1 parent 6147df9 commit 54cf780
2 files changed
Lines changed: 464 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
0 commit comments