Skip to content

Commit bf60105

Browse files
committed
add command aliases
1 parent f26ff2d commit bf60105

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/commands/add.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use clap::Args;
99

1010
/// Add a track entry
1111
#[derive(Args)]
12+
#[command(visible_aliases = ["a"])]
1213
pub struct Add {
1314
/// A short message
1415
message: Vec<String>,

src/commands/delete.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use inquire::MultiSelect;
1111

1212
/// Remove entries from a tracking list
1313
#[derive(Args)]
14+
#[command(visible_aliases = ["d"])]
1415
pub struct Delete {
1516
/// Date of the list
1617
date: Option<String>,

src/commands/edit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use inquire::{CustomType, Editor, Select, Text};
1111

1212
/// Edit an entry from a tracking list
1313
#[derive(Args)]
14+
#[command(visible_aliases = ["e"])]
1415
pub struct Edit {
1516
/// Date of the list
1617
date: Option<String>,

src/commands/view.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use yansi::Paint;
1212

1313
/// Display tracking list entries
1414
#[derive(Args)]
15+
#[command(visible_aliases = ["v"])]
1516
pub struct View {
1617
/// Date of the list
1718
date: Option<String>,

0 commit comments

Comments
 (0)