From 62bcf352cdc7261878e918adc20dcfb70b6e672a Mon Sep 17 00:00:00 2001 From: Vladislav Mamon Date: Sun, 24 Nov 2024 01:40:18 +0300 Subject: [PATCH] refactor(cache): remove interactive cache remove --- src/app.rs | 7 +------ src/cache.rs | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/app.rs b/src/app.rs index 5358fa6..e3823cd 100644 --- a/src/app.rs +++ b/src/app.rs @@ -82,9 +82,6 @@ pub enum CacheCommand { Remove { /// List of cache entries to remove. entries: Vec, - /// Interactive mode. - #[arg(short, long)] - interactive: bool, /// Remove all cache entries. #[arg(short, long, conflicts_with_all = ["entries", "interactive"])] all: bool, @@ -306,11 +303,9 @@ impl App { match command { | CacheCommand::List => Ok(cache.list()?), - | CacheCommand::Remove { entries, interactive, all } => { + | CacheCommand::Remove { entries, all } => { if all { cache.remove_all() - } else if interactive { - cache.remove_interactive() } else { cache.remove(entries) } diff --git a/src/cache.rs b/src/cache.rs index 0a227f3..74e6a99 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -409,9 +409,4 @@ impl Cache { Ok(()) } - - /// Removes cache entries interactively. - pub fn remove_interactive(&mut self) -> miette::Result<()> { - Ok(()) - } }