FIX: config spec "Fixes only" mode

This commit is contained in:
nobody 2024-08-18 00:40:23 +02:00 committed by murmeldin
parent 2d3549a200
commit 4686eff0d4

View file

@ -231,8 +231,8 @@ pub fn interactive_check(spec: &CfgSpec, config: KV) -> Result<(), Box<dyn Error
let mut all_valid: bool = true; let mut all_valid: bool = true;
for group in spec.groups { for group in spec.groups {
group_header(group.name, group.description); group_header(group.name, group.description);
loop {
let todo = needs_info(&config, group); let todo = needs_info(&config, group);
// TODO: add distinction between edit all / edit necessary only
let choices = if !todo.is_empty() { let choices = if !todo.is_empty() {
println!( 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"][..] &["[S]kip group", "[E]dit all", "[L]ist all"][..]
}; };
loop {
let choice = prompt_action(choices); let choice = prompt_action(choices);
match choice { match choice {
'L' => { 'L' => {