Skip to content

Commit fe14588

Browse files
authored
feat: add flag to pixi search (#2018)
This makes it more consistent with `apt`.
1 parent 2ed4234 commit fe14588

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/clean.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ pub struct CacheArgs {
6060
pub repodata: bool,
6161

6262
/// Answer yes to all questions.
63-
#[arg(long)]
64-
pub yes: bool,
63+
#[clap(short = 'y', long = "yes", long = "assume-yes")]
64+
assume_yes: bool,
6565
// TODO: Would be amazing to have a --unused flag to clean only the unused cache.
6666
// By searching the inode count of the packages and removing based on that.
6767
// #[arg(long)]
@@ -139,7 +139,7 @@ async fn clean_cache(args: CacheArgs) -> miette::Result<()> {
139139
if args.exec {
140140
dirs.push(cache_dir.join(consts::CACHED_ENVS_DIR));
141141
}
142-
if dirs.is_empty() && (args.yes || dialoguer::Confirm::new()
142+
if dirs.is_empty() && (args.assume_yes || dialoguer::Confirm::new()
143143
.with_prompt("No cache types specified using the flags.\nDo you really want to remove all cache directories from your machine?")
144144
.interact_opt()
145145
.into_diagnostic()?

0 commit comments

Comments
 (0)