From d8c8e4a797162b6e2b67c88e139f19a4ae25de86 Mon Sep 17 00:00:00 2001 From: "Peter Schilling (aider)" Date: Mon, 23 Sep 2024 20:26:39 -0700 Subject: [PATCH] feat: Add alias 'rm' to delete command --- src/main.rs | 1 + src/parser.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2ef674c..4337cad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -83,6 +83,7 @@ enum Commands { /// Print all keys in the .env file Keys, /// Delete specified environment variables + #[command(alias = "rm")] Delete { /// Keys to delete #[arg(required = true)] diff --git a/src/parser.rs b/src/parser.rs index 9d61924..54adfe9 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -24,7 +24,6 @@ pub fn parser() -> impl Parser, Error = Simple> + Clone { .map(|(chars, _)| chars.into_iter().collect::()) .map(Line::Comment); - let key = key_parser(); // Parser for single-quoted values