Add goldens for isAction tquery and integration with zsh

This commit is contained in:
David Dworken 2022-11-01 11:39:55 -07:00
parent 19fbeda539
commit 153e59eff3
No known key found for this signature in database
4 changed files with 123 additions and 2 deletions

View File

@ -1 +1,31 @@
TODOOOOOOOOO
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 source /home/runner/.bashrc │
│ 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' │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

View File

@ -1 +1,30 @@
TODOOOOOOOOO
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' │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

View 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

View 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"
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