File tree Expand file tree Collapse file tree 3 files changed +0
-38
lines changed Expand file tree Collapse file tree 3 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -73,26 +73,6 @@ var FlagEnvHinter FlagEnvHintFunc = withEnvHint
73
73
// details. This is used by the default FlagStringer.
74
74
var FlagFileHinter FlagFileHintFunc = withFileHint
75
75
76
- // FlagsByName is a slice of Flag.
77
- type FlagsByName []Flag
78
-
79
- func (f FlagsByName ) Len () int {
80
- return len (f )
81
- }
82
-
83
- func (f FlagsByName ) Less (i , j int ) bool {
84
- if len (f [j ].Names ()) == 0 {
85
- return false
86
- } else if len (f [i ].Names ()) == 0 {
87
- return true
88
- }
89
- return lexicographicLess (f [i ].Names ()[0 ], f [j ].Names ()[0 ])
90
- }
91
-
92
- func (f FlagsByName ) Swap (i , j int ) {
93
- f [i ], f [j ] = f [j ], f [i ]
94
- }
95
-
96
76
// ActionableFlag is an interface that wraps Flag interface and RunAction operation.
97
77
type ActionableFlag interface {
98
78
RunAction (context.Context , * Command ) error
Original file line number Diff line number Diff line change @@ -769,15 +769,6 @@ var FlagStringer FlagStringFunc = stringifyFlag
769
769
FlagStringer converts a flag definition to a string. This is used by help to
770
770
display a flag.
771
771
772
- type FlagsByName []Flag
773
- FlagsByName is a slice of Flag.
774
-
775
- func (f FlagsByName) Len() int
776
-
777
- func (f FlagsByName) Less(i, j int) bool
778
-
779
- func (f FlagsByName) Swap(i, j int)
780
-
781
772
type FloatArg = ArgumentBase[float64, NoConfig, floatValue]
782
773
783
774
type FloatFlag = FlagBase[float64, NoConfig, floatValue]
Original file line number Diff line number Diff line change @@ -769,15 +769,6 @@ var FlagStringer FlagStringFunc = stringifyFlag
769
769
FlagStringer converts a flag definition to a string. This is used by help to
770
770
display a flag.
771
771
772
- type FlagsByName []Flag
773
- FlagsByName is a slice of Flag.
774
-
775
- func (f FlagsByName) Len() int
776
-
777
- func (f FlagsByName) Less(i, j int) bool
778
-
779
- func (f FlagsByName) Swap(i, j int)
780
-
781
772
type FloatArg = ArgumentBase[float64, NoConfig, floatValue]
782
773
783
774
type FloatFlag = FlagBase[float64, NoConfig, floatValue]
You can’t perform that action at this time.
0 commit comments