Stable goose info -v (#3760)
Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -51,9 +51,14 @@ 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 {
|
||||||
for line in yaml.lines() {
|
let sorted_values: std::collections::BTreeMap<_, _> =
|
||||||
println!(" {}", line);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user