diff --git a/internal/pflagfork/flagset_test.go b/internal/pflagfork/flagset_test.go index ce2c8d6c..123ed262 100644 --- a/internal/pflagfork/flagset_test.go +++ b/internal/pflagfork/flagset_test.go @@ -22,7 +22,7 @@ func TestLookupPosixShorthandArg(t *testing.T) { f := fs.lookupPosixShorthandArg(arg) if f == nil || f.Name != name { - t.Fatalf("should be " + name) + t.Fatal("should be " + name) } if f.Prefix != prefix { diff --git a/pkg/ps/ps.go b/pkg/ps/ps.go index 9f067dc1..d65d87dc 100644 --- a/pkg/ps/ps.go +++ b/pkg/ps/ps.go @@ -58,10 +58,13 @@ func DetermineShell() string { func isBLE() bool { bleEnvs := []string{ + "_bleopt_connect_tty", + "_ble_util_fdlist_cloexec", "_ble_util_fd_null", "_ble_util_fd_stderr", "_ble_util_fd_stdin", "_ble_util_fd_stdout", + "_ble_util_fdvars_export", "_ble_util_fd_zero", } for _, e := range bleEnvs { diff --git a/traverse.go b/traverse.go index 8d3397a9..a78e0392 100644 --- a/traverse.go +++ b/traverse.go @@ -139,6 +139,7 @@ loop: switch f.Value.Type() { case "bool": + //nolint:govet return ActionValues("true", "false").StyleF(style.ForKeyword).Usage(f.Usage).Prefix(f.Prefix), context default: return storage.getFlag(cmd, f.Name).Prefix(f.Prefix), context