diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2021-05-09 19:01:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-09 18:01:21 +0000 |
| commit | bd4db1fa038bc338f2b608858c2ffd3c25e0abe7 (patch) | |
| tree | 7ea9ee7ffde598d4a274821eeb61d4d69e0059d1 /src/command/mod.rs | |
| parent | Fix bash integration to set the session (#88) (diff) | |
| download | atuin-bd4db1fa038bc338f2b608858c2ffd3c25e0abe7.zip | |
Allow listing or searching with only the command as output (#89)
Should be useful for using other tools, such as FZF
Diffstat (limited to 'src/command/mod.rs')
| -rw-r--r-- | src/command/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<String>, + + #[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, ) |
