Skip to content

Commit

Permalink
feat: Add alias 'rm' to delete command
Browse files Browse the repository at this point in the history
  • Loading branch information
schpet committed Sep 24, 2024
1 parent dfa260b commit d8c8e4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
1 change: 0 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pub fn parser() -> impl Parser<char, Vec<Line>, Error = Simple<char>> + Clone {
.map(|(chars, _)| chars.into_iter().collect::<String>())
.map(Line::Comment);


let key = key_parser();

// Parser for single-quoted values
Expand Down

0 comments on commit d8c8e4a

Please sign in to comment.