From 916e025cabbb58b9bbb2c8b472e80318c47b8b32 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sun, 21 Jul 2024 12:17:33 +0200 Subject: [PATCH] rm: unimplemented paths --- README.md | 2 -- src/bin/flake-edit/cli.rs | 6 ------ src/bin/flake-edit/main.rs | 9 --------- 3 files changed, 17 deletions(-) diff --git a/README.md b/README.md index a6b5db1..349c74c 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,6 @@ Usage: flake-edit [OPTIONS] [FLAKE_REF] Commands: add Add a new flake reference - change - Change a specific flake reference based on its id remove Remove a specific flake reference based on its id list diff --git a/src/bin/flake-edit/cli.rs b/src/bin/flake-edit/cli.rs index 322fbfb..0e8bdad 100644 --- a/src/bin/flake-edit/cli.rs +++ b/src/bin/flake-edit/cli.rs @@ -81,12 +81,6 @@ pub(crate) enum Command { #[arg(long, short)] no_flake: bool, }, - /// Change a specific flake reference based on its id. - #[command(alias = "c", arg_required_else_help = true)] - Change { - id: Option, - uri: Option, - }, /// Remove a specific flake reference based on its id. #[clap(alias = "rm")] Remove { id: Option }, diff --git a/src/bin/flake-edit/main.rs b/src/bin/flake-edit/main.rs index 7e03c54..d772b4f 100644 --- a/src/bin/flake-edit/main.rs +++ b/src/bin/flake-edit/main.rs @@ -94,15 +94,6 @@ fn main() -> eyre::Result<()> { } cli::Command::Update { .. } => {} cli::Command::List { .. } => {} - cli::Command::Change { id, uri } => { - if let Some(id) = id { - change = Change::Change { - id: id.to_owned().into(), - ref_or_rev: None, - uri: uri.clone(), - }; - } - } cli::Command::Completion { inputs: _, mode } => match mode { cli::CompletionMode::None => todo!(), cli::CompletionMode::Add => {