Stable goose info -v (#3760)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2025-07-31 22:09:44 +02:00
committed by GitHub
parent 3f6a055790
commit 14ee888832
+8 -3
View File
@@ -51,9 +51,14 @@ pub fn handle_info(verbose: bool) -> Result<()> {
" Run '{}' to configure goose",
style("goose configure").cyan()
);
} else if let Ok(yaml) = serde_yaml::to_string(&values) {
for line in yaml.lines() {
println!(" {}", line);
} else {
let sorted_values: std::collections::BTreeMap<_, _> =
values.iter().map(|(k, v)| (k.clone(), v.clone())).collect();
if let Ok(yaml) = serde_yaml::to_string(&sorted_values) {
for line in yaml.lines() {
println!(" {}", line);
}
}
}
}