From d8aacb4a806c097fb316305dab8c481546d72b8b Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 13 Feb 2021 22:06:27 +0000 Subject: Add fuzzy history search and distinct arg --- src/command/history.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/command') 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), } } } -- cgit v1.3.1