diff options
| author | Ellie Huxtable <e@elm.sh> | 2021-02-13 22:06:27 +0000 |
|---|---|---|
| committer | Ellie Huxtable <e@elm.sh> | 2021-02-13 22:06:27 +0000 |
| commit | d8aacb4a806c097fb316305dab8c481546d72b8b (patch) | |
| tree | e30757902c93c3ccd8f99d14fb6360545566ee6b /src/command/history.rs | |
| parent | Update readme (diff) | |
| download | atuin-d8aacb4a806c097fb316305dab8c481546d72b8b.zip | |
Add fuzzy history search and distinct arg
Diffstat (limited to 'src/command/history.rs')
| -rw-r--r-- | src/command/history.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command/history.rs b/src/command/history.rs index 4caf4c17..f8a5b27e 100644 --- a/src/command/history.rs +++ b/src/command/history.rs @@ -28,7 +28,10 @@ pub enum HistoryCmd { about="list all items in history", aliases=&["l", "li", "lis"], )] - List, + List { + #[structopt(long)] + distinct: bool, + }, } impl HistoryCmd { @@ -65,7 +68,7 @@ impl HistoryCmd { Ok(()) } - HistoryCmd::List => db.list(), + HistoryCmd::List { distinct } => db.list(*distinct), } } } |
