mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-19 19:37:59 +02:00
Take into account shell differences
This commit is contained in:
parent
2efa93762a
commit
24b342716e
@ -1990,7 +1990,7 @@ echo bar`)
|
|||||||
out = tester.RunInteractiveShell(t, `hishtory query -pipefail`)
|
out = tester.RunInteractiveShell(t, `hishtory query -pipefail`)
|
||||||
compareGoldens(t, out, fmt.Sprintf("testCustomColumns-query-isAction=%v", (os.Getenv("GITHUB_ACTION") != "")))
|
compareGoldens(t, out, fmt.Sprintf("testCustomColumns-query-isAction=%v", (os.Getenv("GITHUB_ACTION") != "")))
|
||||||
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE -pipefail ENTER"})
|
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE -pipefail ENTER"})
|
||||||
compareGoldens(t, out, fmt.Sprintf("testCustomColumns-tquery-isAction=%v", (os.Getenv("GITHUB_ACTION") != "")))
|
compareGoldens(t, out, fmt.Sprintf("testCustomColumns-tquery-%s-isAction=%v", tester.ShellName(), (os.Getenv("GITHUB_ACTION") != "")))
|
||||||
}
|
}
|
||||||
|
|
||||||
type deviceSet struct {
|
type deviceSet struct {
|
||||||
|
@ -8,12 +8,12 @@ Search Query: > -pipefail
|
|||||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||||
│ Exit Code git_remote Command │
|
│ Exit Code git_remote Command │
|
||||||
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||||
│ 0 https://github.com/ddworken/hishtory source /Users/david/.bashrc │
|
│ 0 git@github.com:ddworken/hishtory.git source /Users/david/.bashrc │
|
||||||
│ 0 https://github.com/ddworken/hishtory hishtory config-set displayed-columns '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 echo bar │
|
||||||
│ 0 cd / │
|
│ 0 cd / │
|
||||||
│ 0 https://github.com/ddworken/hishtory echo foo │
|
│ 0 git@github.com:ddworken/hishtory.git 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 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 echo baz │
|
||||||
│ 0 cd / │
|
│ 0 cd / │
|
||||||
│ 0 echo $FOOBAR world │
|
│ 0 echo $FOOBAR world │
|
@ -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 @@
|
|||||||
|
TODOOOOOOOOO
|
Loading…
x
Reference in New Issue
Block a user