Fix grammar

This commit is contained in:
Wildan M 2025-11-13 18:57:38 +07:00
parent d2bb65ed26
commit 5af936d35f

View File

@ -668,9 +668,14 @@ fn handle_push(recipes: &Vec<CookRecipe>, config: &CliConfig) -> anyhow::Result<
if config.cook.verbose {
println!("");
println!(
"Pushed {} of {} packages",
"Pushed {} of {} {}",
format_size(total_size),
visited.len()
visited.len(),
if visited.len() == 1 {
"package"
} else {
"packages"
},
);
}
@ -697,9 +702,14 @@ fn handle_tree(recipes: &Vec<CookRecipe>, _config: &CliConfig) -> anyhow::Result
println!("");
println!(
"Estimated image size: {} of {} packages",
"Estimated image size: {} of {} {}",
format_size(total_size),
visited.len()
visited.len(),
if visited.len() == 1 {
"package"
} else {
"packages"
},
);
Ok(())