From bd4db1fa038bc338f2b608858c2ffd3c25e0abe7 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sun, 9 May 2021 19:01:21 +0100 Subject: Allow listing or searching with only the command as output (#89) Should be useful for using other tools, such as FZF --- src/command/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/command/mod.rs') diff --git a/src/command/mod.rs b/src/command/mod.rs index 8af64cb0..161c99d9 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -69,6 +69,9 @@ pub enum AtuinCmd { human: bool, query: Vec, + + #[structopt(long, about = "Show only the text of the command")] + cmd_only: bool, }, #[structopt(about = "sync with the configured server")] @@ -112,6 +115,7 @@ impl AtuinCmd { before, after, query, + cmd_only, } => { search::run( &client_settings, @@ -123,6 +127,7 @@ impl AtuinCmd { exclude_cwd, before, after, + cmd_only, &query, &mut db, ) -- cgit v1.3.1