From 455ca84231d1ee0cd3361d82ce73612d0f0ab9f7 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 6 Oct 2024 23:23:26 -0700 Subject: [PATCH] Update goldens --- client/testdata/TestTimestampFormat-tquery | 6 ++--- .../testCustomColumns-tquery-bash-isAction | 23 ++++++++++++++++++- .../testCustomColumns-tquery-zsh-isAction | 23 ++++++++++++++++++- .../testdata/testRemoveDuplicateRows-tquery | 23 ++++++++++++++++++- 4 files changed, 69 insertions(+), 6 deletions(-) diff --git a/client/testdata/TestTimestampFormat-tquery b/client/testdata/TestTimestampFormat-tquery index 210fe0d..b45d9ba 100644 --- a/client/testdata/TestTimestampFormat-tquery +++ b/client/testdata/TestTimestampFormat-tquery @@ -1,10 +1,10 @@ Search Query: > table_cmd -tquery ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ -│ Hostname CWD Timestamp Runtime Exit Code Command │ +│ Hostname CWD Timestamp Runtime Exit Code Command │ │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ -│ localhost ~/foo/ 2022/Apr/16 01:03 24s 3 table_cmd2 │ -│ localhost /tmp/ 2022/Apr/16 01:03 4s 2 table_cmd1 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa… │ +│ localhost ~/foo/ 2022/Apr/16 01:03 24s 3 table_cmd2 │ +│ localhost /tmp/ 2022/Apr/16 01:03 4s 2 table_cmd1 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa… │ │ │ │ │ │ │ diff --git a/client/testdata/testCustomColumns-tquery-bash-isAction b/client/testdata/testCustomColumns-tquery-bash-isAction index 5f30c2b..c913ad2 100644 --- a/client/testdata/testCustomColumns-tquery-bash-isAction +++ b/client/testdata/testCustomColumns-tquery-bash-isAction @@ -3,4 +3,25 @@ Search Query: > -pipefail ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Exit Code git_remote Command │ │────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ -│ 0 https://github.com/ddworken/hishtory \ No newline at end of file +│ 0 https://github.com/ddworken/hishtory hishtory tquery │ +│ 0 https://github.com/ddworken/hishtory hishtory config-set displayed-columns 'Exit Code' git_remote Command │ +│ 0 echo bar │ +│ 0 cd / │ +│ 0 https://github.com/ddworken/hishtory echo foo │ +│ 0 https://github.com/ddworken/hishtory hishtory config-add custom-columns git_remote '(git remote -v 2>/dev/null | grep origin 1>/dev/null ) && git remote get-url origin || true' │ +│ 0 echo baz │ +│ 0 cd / │ +│ 0 echo $FOOBAR world │ +│ 0 export FOOBAR='hello' │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +hiSHtory: Search your shell history • ctrl+h help \ No newline at end of file diff --git a/client/testdata/testCustomColumns-tquery-zsh-isAction b/client/testdata/testCustomColumns-tquery-zsh-isAction index 5f30c2b..c913ad2 100644 --- a/client/testdata/testCustomColumns-tquery-zsh-isAction +++ b/client/testdata/testCustomColumns-tquery-zsh-isAction @@ -3,4 +3,25 @@ Search Query: > -pipefail ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Exit Code git_remote Command │ │────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ -│ 0 https://github.com/ddworken/hishtory \ No newline at end of file +│ 0 https://github.com/ddworken/hishtory hishtory tquery │ +│ 0 https://github.com/ddworken/hishtory hishtory config-set displayed-columns 'Exit Code' git_remote Command │ +│ 0 echo bar │ +│ 0 cd / │ +│ 0 https://github.com/ddworken/hishtory echo foo │ +│ 0 https://github.com/ddworken/hishtory hishtory config-add custom-columns git_remote '(git remote -v 2>/dev/null | grep origin 1>/dev/null ) && git remote get-url origin || true' │ +│ 0 echo baz │ +│ 0 cd / │ +│ 0 echo $FOOBAR world │ +│ 0 export FOOBAR='hello' │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +hiSHtory: Search your shell history • ctrl+h help \ No newline at end of file diff --git a/client/testdata/testRemoveDuplicateRows-tquery b/client/testdata/testRemoveDuplicateRows-tquery index ec17865..e5966e9 100644 --- a/client/testdata/testRemoveDuplicateRows-tquery +++ b/client/testdata/testRemoveDuplicateRows-tquery @@ -3,4 +3,25 @@ Search Query: > -pipefail ┌───────────────────────────────────────────────────────────────────────────┐ │ Exit Code Command │ │───────────────────────────────────────────────────────────────────────────│ -│ 0 \ No newline at end of file +│ 0 hishtory tquery │ +│ 0 hishtory config-set displayed-columns 'Exit Code' Command │ +│ 0 echo foo │ +│ 0 echo baz │ +│ 0 echo baz │ +│ 0 echo foo │ +│ 0 echo foo │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└───────────────────────────────────────────────────────────────────────────┘ +hiSHtory: Search your shell history • ctrl+h help \ No newline at end of file