from origin repo gh:ddworken/hishtory, commit 480630e9181167b51554f4407db55717d9b7e4dd
This commit is contained in:
6
client/lib/goldens/TestFish-table
Normal file
6
client/lib/goldens/TestFish-table
Normal file
@@ -0,0 +1,6 @@
|
||||
CWD Hostname Exit Code Command
|
||||
/ ghaction-runner-hostname 0 hishtory config-set displayed-columns CWD Hostname 'Exit Code' Command
|
||||
/ ghaction-runner-hostname 0 ls /tmp/ &
|
||||
/ ghaction-runner-hostname 0 echo "foo"
|
||||
/ ghaction-runner-hostname 0 echo bar
|
||||
/ ghaction-runner-hostname 0 echo foo
|
3
client/lib/goldens/TestTimestampFormat-query
Normal file
3
client/lib/goldens/TestTimestampFormat-query
Normal file
@@ -0,0 +1,3 @@
|
||||
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 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
30
client/lib/goldens/TestTimestampFormat-tquery
Normal file
30
client/lib/goldens/TestTimestampFormat-tquery
Normal file
@@ -0,0 +1,30 @@
|
||||
-pipefail -tablesizing
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail -tablesizing
|
||||
|
||||
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ 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 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa… │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
30
client/lib/goldens/TestTimestampFormat-tquery-isAction
Normal file
30
client/lib/goldens/TestTimestampFormat-tquery-isAction
Normal file
@@ -0,0 +1,30 @@
|
||||
-pipefail -tablesizing
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail -tablesizing
|
||||
|
||||
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ 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 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa… │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
26
client/lib/goldens/TestTui-Initial
Normal file
26
client/lib/goldens/TestTui-Initial
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > ls
|
||||
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:21 PDT 3s 2 echo 'aaaaaa bbbb' │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:16 PDT 3s 2 ls ~/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
26
client/lib/goldens/TestTui-Search
Normal file
26
client/lib/goldens/TestTui-Search
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > ls
|
||||
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:16 PDT 3s 2 ls ~/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
14
client/lib/goldens/TestTui-SmallTerminal
Normal file
14
client/lib/goldens/TestTui-SmallTerminal
Normal file
@@ -0,0 +1,14 @@
|
||||
Search Query: > ls
|
||||
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:21 PDT 3s 2 echo 'aaaaaa bbbb' │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:16 PDT 3s 2 ls ~/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└────────────────────────────────────────────────────────────────────────────────────────┘
|
26
client/lib/goldens/testControlR-AdvancedSearch
Normal file
26
client/lib/goldens/testControlR-AdvancedSearch
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > cwd:/tmp/ ls
|
||||
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:26 PDT 3s 2 ls ~/bar/ │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:21 PDT 3s 2 ls ~/foo/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
2
client/lib/goldens/testControlR-ControlC-bash
Normal file
2
client/lib/goldens/testControlR-ControlC-bash
Normal file
@@ -0,0 +1,2 @@
|
||||
bash-5.2$ source /Users/david/.bashrc
|
||||
bash-5.2$ echo
|
3
client/lib/goldens/testControlR-ControlC-fish
Normal file
3
client/lib/goldens/testControlR-ControlC-fish
Normal file
@@ -0,0 +1,3 @@
|
||||
Welcome to fish, the friendly interactive shell
|
||||
Type help for instructions on how to use fish
|
||||
david@Davids-MacBook-Air ~/c/hishtory (master)> echo 'aaaaaa bbbb'
|
1
client/lib/goldens/testControlR-ControlC-zsh
Normal file
1
client/lib/goldens/testControlR-ControlC-zsh
Normal file
@@ -0,0 +1 @@
|
||||
david@Davids-MacBook-Air hishtory % echo
|
26
client/lib/goldens/testControlR-Initial
Normal file
26
client/lib/goldens/testControlR-Initial
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > ls
|
||||
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:36 PDT 3s 2 echo 'bar' & │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:31 PDT 3s 2 echo 'aaaaaa bbbb' │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:26 PDT 3s 2 ls ~/bar/ │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:21 PDT 3s 2 ls ~/foo/ │
|
||||
│ server /etc/ Oct 17 2022 21:43:16 PDT 3s 127 ls ~/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
26
client/lib/goldens/testControlR-InitialSearch
Normal file
26
client/lib/goldens/testControlR-InitialSearch
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > ls
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname Exit Code Command foo │
|
||||
│─────────────────────────────────────────────────────────────────────────────│
|
||||
│ ghaction-runner-hostname 0 ls / foo │
|
||||
│ localhost 2 ls ~/bar/ │
|
||||
│ localhost 2 ls ~/foo/ │
|
||||
│ server 127 ls ~/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────┘
|
26
client/lib/goldens/testControlR-InitialSearchExpanded
Normal file
26
client/lib/goldens/testControlR-InitialSearchExpanded
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > echo
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname Exit Code Command foo │
|
||||
│─────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost 2 echo 'bar' & │
|
||||
│ localhost 2 echo 'aaaaaa bbbb' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────┘
|
26
client/lib/goldens/testControlR-InitialSearchNoResults
Normal file
26
client/lib/goldens/testControlR-InitialSearchNoResults
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > asdf
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname Exit Code Command foo │
|
||||
│─────────────────────────────────────────────────────────────────────────────│
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────┘
|
@@ -0,0 +1,26 @@
|
||||
Search Query: > echo
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname Exit Code Command foo │
|
||||
│─────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost 2 echo 'bar' & │
|
||||
│ localhost 2 echo 'aaaaaa bbbb' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────┘
|
26
client/lib/goldens/testControlR-Search
Normal file
26
client/lib/goldens/testControlR-Search
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > echo
|
||||
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:36 PDT 3s 2 echo 'bar' & │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:31 PDT 3s 2 echo 'aaaaaa bbbb' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
2
client/lib/goldens/testControlR-bash-Disabled
Normal file
2
client/lib/goldens/testControlR-bash-Disabled
Normal file
@@ -0,0 +1,2 @@
|
||||
bash-5.2$ source /Users/david/.bashrc
|
||||
(reverse-i-search)`':
|
26
client/lib/goldens/testControlR-customColumn
Normal file
26
client/lib/goldens/testControlR-customColumn
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname Exit Code Command foo │
|
||||
│─────────────────────────────────────────────────────────────────────────────│
|
||||
│ ghaction-runner-hostname 0 ls / foo │
|
||||
│ localhost 2 echo 'bar' & │
|
||||
│ localhost 2 echo 'aaaaaa bbbb' │
|
||||
│ localhost 2 ls ~/bar/ │
|
||||
│ localhost 2 ls ~/foo/ │
|
||||
│ server 127 ls ~/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────┘
|
26
client/lib/goldens/testControlR-displayedColumns
Normal file
26
client/lib/goldens/testControlR-displayedColumns
Normal file
@@ -0,0 +1,26 @@
|
||||
Search Query: > ls
|
||||
|
||||
┌────────────────────────────────────────────────────┐
|
||||
│ Hostname Exit Code Command │
|
||||
│────────────────────────────────────────────────────│
|
||||
│ localhost 2 echo 'bar' & │
|
||||
│ localhost 2 echo 'aaaaaa bbbb' │
|
||||
│ localhost 2 ls ~/bar/ │
|
||||
│ localhost 2 ls ~/foo/ │
|
||||
│ server 127 ls ~/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└────────────────────────────────────────────────────┘
|
3
client/lib/goldens/testControlR-fish-Disabled
Normal file
3
client/lib/goldens/testControlR-fish-Disabled
Normal file
@@ -0,0 +1,3 @@
|
||||
Welcome to fish, the friendly interactive shell
|
||||
Type help for instructions on how to use fish
|
||||
david@Davids-MacBook-Air ~/c/hishtory (master)>
|
2
client/lib/goldens/testControlR-zsh-Disabled
Normal file
2
client/lib/goldens/testControlR-zsh-Disabled
Normal file
@@ -0,0 +1,2 @@
|
||||
david@Davids-MacBook-Air hishtory %
|
||||
bck-i-search: _
|
4
client/lib/goldens/testCustomColumns-initHistory
Normal file
4
client/lib/goldens/testCustomColumns-initHistory
Normal file
@@ -0,0 +1,4 @@
|
||||
export FOOBAR='hello'
|
||||
echo $FOOBAR world
|
||||
cd /
|
||||
echo baz
|
10
client/lib/goldens/testCustomColumns-query-isAction=false
Normal file
10
client/lib/goldens/testCustomColumns-query-isAction=false
Normal file
@@ -0,0 +1,10 @@
|
||||
Exit Code git_remote Command
|
||||
0 git@github.com:ddworken/hishtory.git hishtory config-set displayed-columns 'Exit Code' git_remote Command
|
||||
0 echo bar
|
||||
0 cd /
|
||||
0 git@github.com:ddworken/hishtory.git echo foo
|
||||
0 git@github.com:ddworken/hishtory.git hishtory config-add custom-column 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'
|
10
client/lib/goldens/testCustomColumns-query-isAction=true
Normal file
10
client/lib/goldens/testCustomColumns-query-isAction=true
Normal file
@@ -0,0 +1,10 @@
|
||||
Exit Code git_remote Command
|
||||
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-column 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'
|
31
client/lib/goldens/testCustomColumns-tquery-bash
Normal file
31
client/lib/goldens/testCustomColumns-tquery-bash
Normal file
@@ -0,0 +1,31 @@
|
||||
bash-5.2$ source /Users/david/.bashrc
|
||||
bash-5.2$ hishtory tquery -pipefail
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Exit Code git_remote Command │
|
||||
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ 0 git@github.com:ddworken/hishtory.git hishtory config-set displayed-columns 'Exit Code' git_remote Command │
|
||||
│ 0 echo bar │
|
||||
│ 0 cd / │
|
||||
│ 0 git@github.com:ddworken/hishtory.git echo foo │
|
||||
│ 0 git@github.com:ddworken/hishtory.git hishtory config-add custom-column git_remote '(git remote -v 2>/dev/null | grep origin 1>/dev/null ) && git remote get-url origin || … │
|
||||
│ 0 echo baz │
|
||||
│ 0 cd / │
|
||||
│ 0 echo $FOOBAR world │
|
||||
│ 0 export FOOBAR='hello' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
@@ -0,0 +1,31 @@
|
||||
bash-5.2$ source /Users/runner/.bashrc
|
||||
bash-5.2$ hishtory tquery -pipefail
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Exit Code git_remote Command │
|
||||
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ 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-column git_remote '(git remote -v 2>/dev/null | grep origin 1>/dev/null ) && git remote get-url origin || … │
|
||||
│ 0 echo baz │
|
||||
│ 0 cd / │
|
||||
│ 0 echo $FOOBAR world │
|
||||
│ 0 export FOOBAR='hello' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
@@ -0,0 +1,31 @@
|
||||
runner@ghaction-runner-hostname:~/work/hishtory/hishtory$ source /home/runner/.bashrc
|
||||
runner@ghaction-runner-hostname:~/work/hishtory/hishtory$ hishtory tquery -pipefail
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Exit Code git_remote Command │
|
||||
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ 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-column git_remote '(git remote -v 2>/dev/null | grep origin 1>/dev/null ) && git remote get-url origin || … │
|
||||
│ 0 echo baz │
|
||||
│ 0 cd / │
|
||||
│ 0 echo $FOOBAR world │
|
||||
│ 0 export FOOBAR='hello' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
30
client/lib/goldens/testCustomColumns-tquery-zsh
Normal file
30
client/lib/goldens/testCustomColumns-tquery-zsh
Normal file
@@ -0,0 +1,30 @@
|
||||
david@Davids-MacBook-Air hishtory % hishtory tquery -pipefail
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Exit Code git_remote Command │
|
||||
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ 0 git@github.com:ddworken/hishtory.git hishtory config-set displayed-columns 'Exit Code' git_remote Command │
|
||||
│ 0 echo bar │
|
||||
│ 0 cd / │
|
||||
│ 0 git@github.com:ddworken/hishtory.git echo foo │
|
||||
│ 0 git@github.com:ddworken/hishtory.git hishtory config-add custom-column git_remote '(git remote -v 2>/dev/null | grep origin 1>/dev/null ) && git remote get-url origin || … │
|
||||
│ 0 echo baz │
|
||||
│ 0 cd / │
|
||||
│ 0 echo $FOOBAR world │
|
||||
│ 0 export FOOBAR='hello' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
@@ -0,0 +1,30 @@
|
||||
runner@ghaction-runner-hostname hishtory % hishtory tquery -pipefail
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Exit Code git_remote Command │
|
||||
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ 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-column git_remote '(git remote -v 2>/dev/null | grep origin 1>/dev/null ) && git remote get-url origin || … │
|
||||
│ 0 echo baz │
|
||||
│ 0 cd / │
|
||||
│ 0 echo $FOOBAR world │
|
||||
│ 0 export FOOBAR='hello' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
@@ -0,0 +1,30 @@
|
||||
ghaction-runner-hostname% hishtory tquery -pipefail
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Exit Code git_remote Command │
|
||||
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ 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-column git_remote '(git remote -v 2>/dev/null | grep origin 1>/dev/null ) && git remote get-url origin || … │
|
||||
│ 0 echo baz │
|
||||
│ 0 cd / │
|
||||
│ 0 echo $FOOBAR world │
|
||||
│ 0 export FOOBAR='hello' │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
3
client/lib/goldens/testDisplayTable-customColumns
Normal file
3
client/lib/goldens/testDisplayTable-customColumns
Normal file
@@ -0,0 +1,3 @@
|
||||
Hostname Command
|
||||
localhost table_cmd2
|
||||
localhost table_cmd1
|
3
client/lib/goldens/testDisplayTable-customColumns-2
Normal file
3
client/lib/goldens/testDisplayTable-customColumns-2
Normal file
@@ -0,0 +1,3 @@
|
||||
Hostname Exit Code Command
|
||||
localhost 3 table_cmd2
|
||||
localhost 2 table_cmd1
|
3
client/lib/goldens/testDisplayTable-customColumns-3
Normal file
3
client/lib/goldens/testDisplayTable-customColumns-3
Normal file
@@ -0,0 +1,3 @@
|
||||
Hostname Exit Code Command CWD
|
||||
localhost 3 table_cmd2 ~/foo/
|
||||
localhost 2 table_cmd1 /tmp/
|
@@ -0,0 +1,7 @@
|
||||
Hostname Exit Code Command CWD
|
||||
localhost 2 while : /tmp/
|
||||
do
|
||||
ls /table/
|
||||
done
|
||||
localhost 3 table_cmd2 ~/foo/
|
||||
localhost 2 table_cmd1 /tmp/
|
@@ -0,0 +1,9 @@
|
||||
Hostname Exit Code Command CWD foo
|
||||
ghaction-runner-hostname 0 echo table-2 / aaaaaaaaaaaaa
|
||||
ghaction-runner-hostname 0 echo table-1 / aaaaaaaaaaaaa
|
||||
localhost 2 while : /tmp/
|
||||
do
|
||||
ls /table/
|
||||
done
|
||||
localhost 3 table_cmd2 ~/foo/
|
||||
localhost 2 table_cmd1 /tmp/
|
3
client/lib/goldens/testDisplayTable-defaultColumns
Normal file
3
client/lib/goldens/testDisplayTable-defaultColumns
Normal file
@@ -0,0 +1,3 @@
|
||||
Hostname CWD Timestamp Runtime Exit Code Command
|
||||
localhost ~/foo/ Apr 16 2022 01:03:16 PDT 24s 3 table_cmd2
|
||||
localhost /tmp/ Apr 16 2022 01:03:06 PDT 4s 2 table_cmd1
|
38
client/lib/goldens/testIntegrationWithNewDevice-bash
Normal file
38
client/lib/goldens/testIntegrationWithNewDevice-bash
Normal file
@@ -0,0 +1,38 @@
|
||||
set -emo pipefail
|
||||
hishtory status
|
||||
set -emo pipefail
|
||||
hishtory query
|
||||
ls /a
|
||||
ls /bar
|
||||
ls /foo
|
||||
echo foo
|
||||
echo bar
|
||||
hishtory enable
|
||||
echo thisisrecorded
|
||||
set -emo pipefail
|
||||
hishtory query
|
||||
set -emo pipefail
|
||||
hishtory query foo
|
||||
echo hello | grep complex | sed s/h/i/g; echo baz && echo "fo 'o" # mycommand
|
||||
set -emo pipefail
|
||||
hishtory query complex
|
||||
set -emo pipefail
|
||||
hishtory query
|
||||
set -emo pipefail
|
||||
echo mynewcommand
|
||||
set -emo pipefail
|
||||
hishtory query
|
||||
set -emo pipefail
|
||||
hishtory query
|
||||
set -emo pipefail
|
||||
echo mynewercommand
|
||||
set -emo pipefail
|
||||
hishtory query
|
||||
othercomputer
|
||||
set -emo pipefail
|
||||
hishtory query
|
||||
set -emo pipefail
|
||||
hishtory reupload
|
||||
set -emo pipefail
|
||||
hishtory export | grep -v pipefail | grep -v '/tmp/client install'
|
||||
set -emo pipefail
|
24
client/lib/goldens/testIntegrationWithNewDevice-tablebash
Normal file
24
client/lib/goldens/testIntegrationWithNewDevice-tablebash
Normal file
@@ -0,0 +1,24 @@
|
||||
Hostname Exit Code Command
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 hishtory config-set displayed-columns Hostname 'Exit Code' Command
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 hishtory export | grep -v pipefail | grep -v '/tmp/client install'
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 hishtory reupload
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
localhost 2 othercomputer
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 echo mynewercommand
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 echo mynewcommand
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -emo pipefail
|
24
client/lib/goldens/testIntegrationWithNewDevice-tablezsh
Normal file
24
client/lib/goldens/testIntegrationWithNewDevice-tablezsh
Normal file
@@ -0,0 +1,24 @@
|
||||
Hostname Exit Code Command
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 hishtory config-set displayed-columns Hostname 'Exit Code' Command
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 hishtory export | grep -v pipefail | grep -v '/tmp/client install'
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 hishtory reupload
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
localhost 2 othercomputer
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 echo mynewercommand
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 echo mynewcommand
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
||||
ghaction-runner-hostname 0 hishtory query
|
||||
ghaction-runner-hostname 0 set -eo pipefail
|
38
client/lib/goldens/testIntegrationWithNewDevice-zsh
Normal file
38
client/lib/goldens/testIntegrationWithNewDevice-zsh
Normal file
@@ -0,0 +1,38 @@
|
||||
set -eo pipefail
|
||||
hishtory status
|
||||
set -eo pipefail
|
||||
hishtory query
|
||||
ls /a
|
||||
ls /bar
|
||||
ls /foo
|
||||
echo foo
|
||||
echo bar
|
||||
hishtory enable
|
||||
echo thisisrecorded
|
||||
set -eo pipefail
|
||||
hishtory query
|
||||
set -eo pipefail
|
||||
hishtory query foo
|
||||
echo hello | grep complex | sed s/h/i/g; echo baz && echo "fo 'o" # mycommand
|
||||
set -eo pipefail
|
||||
hishtory query complex
|
||||
set -eo pipefail
|
||||
hishtory query
|
||||
set -eo pipefail
|
||||
echo mynewcommand
|
||||
set -eo pipefail
|
||||
hishtory query
|
||||
set -eo pipefail
|
||||
hishtory query
|
||||
set -eo pipefail
|
||||
echo mynewercommand
|
||||
set -eo pipefail
|
||||
hishtory query
|
||||
othercomputer
|
||||
set -eo pipefail
|
||||
hishtory query
|
||||
set -eo pipefail
|
||||
hishtory reupload
|
||||
set -eo pipefail
|
||||
hishtory export | grep -v pipefail | grep -v '/tmp/client install'
|
||||
set -eo pipefail
|
@@ -0,0 +1,7 @@
|
||||
echo foo
|
||||
echo foo
|
||||
echo baz
|
||||
echo baz
|
||||
echo foo
|
||||
hishtory config-set displayed-columns 'Exit Code' Command
|
||||
hishtory config-set filter-duplicate-commands true
|
6
client/lib/goldens/testRemoveDuplicateRows-enabled-query
Normal file
6
client/lib/goldens/testRemoveDuplicateRows-enabled-query
Normal file
@@ -0,0 +1,6 @@
|
||||
Exit Code Command
|
||||
0 hishtory config-set filter-duplicate-commands true
|
||||
0 hishtory config-set displayed-columns 'Exit Code' Command
|
||||
0 echo foo
|
||||
0 echo baz
|
||||
0 echo foo
|
30
client/lib/goldens/testRemoveDuplicateRows-enabled-tquery
Normal file
30
client/lib/goldens/testRemoveDuplicateRows-enabled-tquery
Normal file
@@ -0,0 +1,30 @@
|
||||
-pipefail
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌───────────────────────────────────────────────────────────────────────────┐
|
||||
│ Exit Code Command │
|
||||
│───────────────────────────────────────────────────────────────────────────│
|
||||
│ 0 hishtory config-set filter-duplicate-commands true │
|
||||
│ 0 hishtory config-set displayed-columns 'Exit Code' Command │
|
||||
│ 0 echo foo │
|
||||
│ 0 echo baz │
|
||||
│ 0 echo foo │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└───────────────────────────────────────────────────────────────────────────┘
|
5
client/lib/goldens/testRemoveDuplicateRows-export
Normal file
5
client/lib/goldens/testRemoveDuplicateRows-export
Normal file
@@ -0,0 +1,5 @@
|
||||
echo foo
|
||||
echo foo
|
||||
echo baz
|
||||
echo baz
|
||||
echo foo
|
7
client/lib/goldens/testRemoveDuplicateRows-query
Normal file
7
client/lib/goldens/testRemoveDuplicateRows-query
Normal file
@@ -0,0 +1,7 @@
|
||||
Exit Code Command
|
||||
0 hishtory config-set displayed-columns 'Exit Code' Command
|
||||
0 echo foo
|
||||
0 echo baz
|
||||
0 echo baz
|
||||
0 echo foo
|
||||
0 echo foo
|
30
client/lib/goldens/testRemoveDuplicateRows-tquery
Normal file
30
client/lib/goldens/testRemoveDuplicateRows-tquery
Normal file
@@ -0,0 +1,30 @@
|
||||
-pipefail
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail
|
||||
|
||||
┌───────────────────────────────────────────────────────────────────────────┐
|
||||
│ Exit Code Command │
|
||||
│───────────────────────────────────────────────────────────────────────────│
|
||||
│ 0 hishtory config-set displayed-columns 'Exit Code' Command │
|
||||
│ 0 echo foo │
|
||||
│ 0 echo baz │
|
||||
│ 0 echo baz │
|
||||
│ 0 echo foo │
|
||||
│ 0 echo foo │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└───────────────────────────────────────────────────────────────────────────┘
|
2
client/lib/goldens/testUninstall-post-uninstall
Normal file
2
client/lib/goldens/testUninstall-post-uninstall
Normal file
@@ -0,0 +1,2 @@
|
||||
foo
|
||||
bar
|
8
client/lib/goldens/testUninstall-post-uninstall-bash
Normal file
8
client/lib/goldens/testUninstall-post-uninstall-bash
Normal file
@@ -0,0 +1,8 @@
|
||||
bash-5.2$ source /Users/david/.bashrc
|
||||
bash-5.2$ echo foo
|
||||
foo
|
||||
bash-5.2$ hishtory
|
||||
bash: hishtory: command not found
|
||||
bash-5.2$ echo bar
|
||||
bar
|
||||
bash-5.2$
|
7
client/lib/goldens/testUninstall-post-uninstall-zsh
Normal file
7
client/lib/goldens/testUninstall-post-uninstall-zsh
Normal file
@@ -0,0 +1,7 @@
|
||||
david@Davids-MacBook-Air hishtory % echo foo
|
||||
foo
|
||||
david@Davids-MacBook-Air hishtory % hishtory
|
||||
zsh: command not found: hishtory
|
||||
david@Davids-MacBook-Air hishtory % echo bar
|
||||
bar
|
||||
david@Davids-MacBook-Air hishtory %
|
2
client/lib/goldens/testUninstall-recorded
Normal file
2
client/lib/goldens/testUninstall-recorded
Normal file
@@ -0,0 +1,2 @@
|
||||
echo foo
|
||||
echo baz
|
1
client/lib/goldens/testUninstall-uninstall
Normal file
1
client/lib/goldens/testUninstall-uninstall
Normal file
@@ -0,0 +1 @@
|
||||
Are you sure you want to uninstall hiSHtory and delete all locally saved history data [y/N]Successfully uninstalled hishtory, please restart your terminal...
|
Reference in New Issue
Block a user