mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 00:03:58 +01:00
Update test goldens + drop duplicate macos version from go tests
This commit is contained in:
parent
7bbd0cb036
commit
c8c1523683
2
.github/workflows/go-test.yml
vendored
2
.github/workflows/go-test.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
needs: extra-delay
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, macos-14]
|
||||
os: [ubuntu-latest, macos-14]
|
||||
test_shard: ["0", "1", "2", "3", "4"]
|
||||
fail-fast: false
|
||||
steps:
|
||||
|
@ -274,7 +274,7 @@ func GetConfig() (ClientConfig, error) {
|
||||
return ClientConfig{}, fmt.Errorf("failed to parse config file: %w", err)
|
||||
}
|
||||
config.KeyBindings = config.KeyBindings.WithDefaults()
|
||||
if config.DisplayedColumns == nil || len(config.DisplayedColumns) == 0 {
|
||||
if len(config.DisplayedColumns) == 0 {
|
||||
config.DisplayedColumns = []string{"Hostname", "CWD", "Timestamp", "Runtime", "Exit Code", "Command"}
|
||||
}
|
||||
if config.TimestampFormat == "" {
|
||||
|
@ -393,7 +393,6 @@ func concatIterators(iters ...iter.Seq2[string, error]) iter.Seq2[string, error]
|
||||
for _, seq := range iters {
|
||||
seq(yield)
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@ -406,7 +405,6 @@ func Values[Slice ~[]Elem, Elem any](s Slice) iter.Seq2[Elem, error] {
|
||||
return
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@ -436,8 +434,6 @@ func readFileToIterator(path string) iter.Seq2[string, error] {
|
||||
yield("", fmt.Errorf("scanner.Err()=%w", err))
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
Search Query: [90m> [7m[39ml[0m[90ms[39m
|
||||
Search Query: [90m> [7m[39ml[0m[90ms
|
||||
|
||||
[90m┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐[39m
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐[39m
|
||||
[90m│[39m Hostname CWD Timestamp Runtime Exit Code Command [90m│[39m
|
||||
[90m│────────────────────────────────────────────────────────────────────────────────────────────────────────│[39m
|
||||
[90m│[93m[104m localhost /tmp/ Oct 17 2022 21:43:21 PDT 3s 2 echo 'aaaaaa bbbb' [90m[49m│[39m
|
||||
|
@ -1,6 +1,6 @@
|
||||
Search Query: [90m> [7m[39ml[0m[90m[49ms[39m
|
||||
Search Query: [90m> [7m[39ml[0m[90m[49ms
|
||||
|
||||
[90m┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐[39m
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐[39m
|
||||
[90m│[39m Hostname CWD Timestamp Runtime Exit Code Command [90m│[39m
|
||||
[90m│────────────────────────────────────────────────────────────────────────────────────────────────────────│[39m
|
||||
[90m│[93m[104m localhost /tmp/ Oct 17 2022 21:43:21 PDT 3s 2 echo 'aaaaaa bbbb' [90m[49m│[39m
|
||||
|
Loading…
Reference in New Issue
Block a user