Show which repo is selected in repo list command

This commit is contained in:
Joscha 2025-05-03 01:35:10 +02:00
parent 5e87d74ede
commit 05477ee64f

View file

@ -23,7 +23,11 @@ impl Command {
} else { } else {
println!("Repos: {}", repos.len()); println!("Repos: {}", repos.len());
for (name, id) in repos { for (name, id) in repos {
println!("- {name} ({id })") if state.selected_repo == Some(id) {
println!("- {name} ({id }, selected)");
} else {
println!("- {name} ({id })");
}
} }
} }