Fix clean by category

This commit is contained in:
Wildan M 2025-11-20 04:38:47 -08:00
parent 2423c3d379
commit 0c717ec5cd
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -427,7 +427,7 @@ fn parse_args(args: Vec<String>) -> anyhow::Result<(CliConfig, CliCommand, Vec<C
.collect(),
}
.iter()
.map(|f| CookRecipe::from_path(f, !config.all))
.map(|f| CookRecipe::from_path(f, !command.is_cleaning()))
.collect::<Result<Vec<CookRecipe>, PackageError>>()?
} else {
if recipe_names.is_empty() {