Cleanup: Collapse flag interfaces
This commit is contained in:
16
app_test.go
16
app_test.go
@@ -2252,6 +2252,22 @@ func (c *customBoolFlag) IsSet() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *customBoolFlag) IsRequired() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *customBoolFlag) IsVisible() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *customBoolFlag) GetCategory() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (c *customBoolFlag) GetEnvVars() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func TestCustomFlagsUnused(t *testing.T) {
|
||||
app := &App{
|
||||
Flags: []Flag{&customBoolFlag{"custom"}},
|
||||
|
Reference in New Issue
Block a user