diff options
| author | 2026-02-27 23:59:19 -0500 | |
|---|---|---|
| committer | 2026-02-27 23:59:19 -0500 | |
| commit | eb425f073256ff9d081ded0d71e36c6306384cac (patch) | |
| tree | d95b25e98ba3cf13f23ba65cdd88fec8c437dfef /src | |
| parent | added show command (diff) | |
remove autoremove and update todo
Diffstat (limited to 'src')
| -rw-r--r-- | src/action.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/action.rs b/src/action.rs index 735516e..fd5fe32 100644 --- a/src/action.rs +++ b/src/action.rs @@ -11,7 +11,6 @@ pub enum Action { Add { url: String }, Update, Upgrade { packages: Vec<String> }, - Autoremove, Remove { packages: Vec<String> }, List, Search { term: String }, @@ -34,7 +33,6 @@ impl Action { let packages = args[2..].to_vec(); Ok(Action::Upgrade { packages }) } - "autoremove" => Ok(Action::Autoremove), "remove" => { let packages = args[2..].to_vec(); @@ -67,7 +65,6 @@ impl Action { Action::Add { url } => add(url.as_str()), Action::Update => update(), Action::Upgrade { packages } => upgrade(packages), - Action::Autoremove => Ok(autoremove()), Action::Remove { packages } => remove(packages), Action::List => list(), Action::Search { term } => Ok(search(term)), @@ -237,10 +234,6 @@ fn upgrade(packages: Vec<String>) -> Result<(), String> { Ok(()) } -fn autoremove() { - println!("autoremoving"); -} - fn remove(packages: Vec<String>) -> Result<(), String> { if !nix::unistd::geteuid().is_root() { return Err("remove must be run as root".to_string()); |
