Commit fe14588 1 parent 2ed4234 commit fe14588 Copy full SHA for fe14588
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ pub struct CacheArgs {
60
60
pub repodata : bool ,
61
61
62
62
/// 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 ,
65
65
// TODO: Would be amazing to have a --unused flag to clean only the unused cache.
66
66
// By searching the inode count of the packages and removing based on that.
67
67
// #[arg(long)]
@@ -139,7 +139,7 @@ async fn clean_cache(args: CacheArgs) -> miette::Result<()> {
139
139
if args. exec {
140
140
dirs. push ( cache_dir. join ( consts:: CACHED_ENVS_DIR ) ) ;
141
141
}
142
- if dirs. is_empty ( ) && ( args. yes || dialoguer:: Confirm :: new ( )
142
+ if dirs. is_empty ( ) && ( args. assume_yes || dialoguer:: Confirm :: new ( )
143
143
. with_prompt ( "No cache types specified using the flags.\n Do you really want to remove all cache directories from your machine?" )
144
144
. interact_opt ( )
145
145
. into_diagnostic ( ) ?
You can’t perform that action at this time.
0 commit comments