-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell_comp_directive.gen.go
67 lines (60 loc) · 1.99 KB
/
shell_comp_directive.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Code generated by "enumer -type=ShellCompDirective -output ./shell_comp_directive.gen.go -format -template=./gen_templates/stringer.go.gotmpl ./"; DO NOT EDIT.
package zulu
import (
"fmt"
)
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the enumer command to generate them again.
func _ShellCompDirectiveNoOp() {
var x [1]struct{}
_ = x[ShellCompDirectiveError-(1)]
_ = x[ShellCompDirectiveNoSpace-(2)]
_ = x[ShellCompDirectiveNoFileComp-(4)]
_ = x[ShellCompDirectiveFilterFileExt-(8)]
_ = x[ShellCompDirectiveFilterDirs-(16)]
_ = x[ShellCompDirectiveKeepOrder-(32)]
_ = x[shellCompDirectiveMaxValue-(64)]
_ = x[ShellCompDirectiveDefault-(0)]
}
var _ShellCompDirectiveValues = []ShellCompDirective{
ShellCompDirectiveError,
ShellCompDirectiveNoSpace,
ShellCompDirectiveNoFileComp,
ShellCompDirectiveFilterFileExt,
ShellCompDirectiveFilterDirs,
ShellCompDirectiveKeepOrder,
ShellCompDirectiveDefault,
}
// ShellCompDirectiveValues returns all values of the enum
func ShellCompDirectiveValues() []ShellCompDirective {
return _ShellCompDirectiveValues
}
// IsAShellCompDirective returns "true" if the value is listed in the enum definition, "false" otherwise.
func (i ShellCompDirective) IsAShellCompDirective() bool {
for _, v := range _ShellCompDirectiveValues {
if i == v {
return true
}
}
return false
}
func (i ShellCompDirective) Name() string {
switch i {
case ShellCompDirectiveError:
return "ShellCompDirectiveError"
case ShellCompDirectiveNoSpace:
return "ShellCompDirectiveNoSpace"
case ShellCompDirectiveNoFileComp:
return "ShellCompDirectiveNoFileComp"
case ShellCompDirectiveFilterFileExt:
return "ShellCompDirectiveFilterFileExt"
case ShellCompDirectiveFilterDirs:
return "ShellCompDirectiveFilterDirs"
case ShellCompDirectiveKeepOrder:
return "ShellCompDirectiveKeepOrder"
case ShellCompDirectiveDefault:
return "ShellCompDirectiveDefault"
default:
return fmt.Sprintf("ShellCompDirective(%d)", i)
}
}