aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/search
diff options
context:
space:
mode:
authorTom Cammann <cammann.tom@gmail.com>2023-03-28 22:06:24 +0100
committerGitHub <noreply@github.com>2023-03-28 21:06:24 +0000
commit0f139044b4d76d70a747bb602e91a764c854f46f (patch)
tree03fd2eabc997c1104bedfb41ee5c092ce2aa2b5e /src/command/client/search
parentUpdate CI action steps (#814) (diff)
downloadatuin-0f139044b4d76d70a747bb602e91a764c854f46f.zip
Add more fields to `atuin search -f` formatting (#824)
- Add `{exit}` which returns the exit code - Add `{relativetime}` which gives a relative time, e.g. "5h"
Diffstat (limited to '')
-rw-r--r--src/command/client/search.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/client/search.rs b/src/command/client/search.rs
index fb3a1a39..7a4d365f 100644
--- a/src/command/client/search.rs
+++ b/src/command/client/search.rs
@@ -79,7 +79,8 @@ pub struct Cmd {
#[arg(long)]
delete: bool,
- /// Available variables: {command}, {directory}, {duration}, {user}, {host} and {time}.
+ /// Available variables: {command}, {directory}, {duration}, {user}, {host}, {time}, {exit} and
+ /// {relativetime}.
/// Example: --format "{time} - [{duration}] - {directory}$\t{command}"
#[arg(long, short)]
format: Option<String>,