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
+6 -1
View File
@@ -51,12 +51,17 @@ pub fn handle_info(verbose: bool) -> Result<()> {
" Run '{}' to configure goose", " Run '{}' to configure goose",
style("goose configure").cyan() style("goose configure").cyan()
); );
} else if let Ok(yaml) = serde_yaml::to_string(&values) { } 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() { for line in yaml.lines() {
println!(" {}", line); println!(" {}", line);
} }
} }
} }
}
Err(e) => println!(" Error loading configuration: {}", e), Err(e) => println!(" Error loading configuration: {}", e),
} }
} }