INNER CODE UNIT · Go
excludeOptions
c-bata/kube-prompt · kube/completer.go:200
func excludeOptions(args []string) ([]string, bool) {
l := len(args)
if l == 0 {
return nil, false
}
cmd := args[0]
filtered := make([]string, 0, l)
var skipNextArg bool
for i := 0; i < len(args); i++ {
if skipNextArg {
skipNextArg = false
continue
}
if cmd == "logs" && args[i] == "-f" {
continue
}