FIX: config spec "Fixes only" mode
This commit is contained in:
parent
2d3549a200
commit
4686eff0d4
|
@ -231,8 +231,8 @@ pub fn interactive_check(spec: &CfgSpec, config: KV) -> Result<(), Box<dyn Error
|
|||
let mut all_valid: bool = true;
|
||||
for group in spec.groups {
|
||||
group_header(group.name, group.description);
|
||||
loop {
|
||||
let todo = needs_info(&config, group);
|
||||
// TODO: add distinction between edit all / edit necessary only
|
||||
let choices = if !todo.is_empty() {
|
||||
println!(
|
||||
"{}",
|
||||
|
@ -251,7 +251,6 @@ pub fn interactive_check(spec: &CfgSpec, config: KV) -> Result<(), Box<dyn Error
|
|||
);
|
||||
&["[S]kip group", "[E]dit all", "[L]ist all"][..]
|
||||
};
|
||||
loop {
|
||||
let choice = prompt_action(choices);
|
||||
match choice {
|
||||
'L' => {
|
||||
|
|
Loading…
Reference in a new issue