Run gofmt
This commit is contained in:
parent
268cb973f8
commit
069c6bfe4a
15
flag.go
15
flag.go
@ -89,22 +89,37 @@ func (f FlagsByName) Swap(i, j int) {
|
|||||||
// this interface be implemented.
|
// this interface be implemented.
|
||||||
type Flag interface {
|
type Flag interface {
|
||||||
fmt.Stringer
|
fmt.Stringer
|
||||||
|
|
||||||
// Apply Flag settings to the given flag set
|
// Apply Flag settings to the given flag set
|
||||||
Apply(*flag.FlagSet) error
|
Apply(*flag.FlagSet) error
|
||||||
|
|
||||||
|
// All possible names for this flag
|
||||||
Names() []string
|
Names() []string
|
||||||
|
|
||||||
|
// Whether the flag has been set or not
|
||||||
IsSet() bool
|
IsSet() bool
|
||||||
|
|
||||||
|
// whether the flag is a required flag or not
|
||||||
IsRequired() bool
|
IsRequired() bool
|
||||||
|
|
||||||
// IsVisible returns true if the flag is not hidden, otherwise false
|
// IsVisible returns true if the flag is not hidden, otherwise false
|
||||||
IsVisible() bool
|
IsVisible() bool
|
||||||
|
|
||||||
|
// Returns the category of the flag
|
||||||
GetCategory() string
|
GetCategory() string
|
||||||
|
|
||||||
// GetUsage returns the usage string for the flag
|
// GetUsage returns the usage string for the flag
|
||||||
GetUsage() string
|
GetUsage() string
|
||||||
|
|
||||||
// GetEnvVars returns the env vars for this flag
|
// GetEnvVars returns the env vars for this flag
|
||||||
GetEnvVars() []string
|
GetEnvVars() []string
|
||||||
|
|
||||||
// TakesValue returns true if the flag takes a value, otherwise false
|
// TakesValue returns true if the flag takes a value, otherwise false
|
||||||
TakesValue() bool
|
TakesValue() bool
|
||||||
|
|
||||||
// GetDefaultText returns the default text for this flag
|
// GetDefaultText returns the default text for this flag
|
||||||
GetDefaultText() string
|
GetDefaultText() string
|
||||||
|
|
||||||
// GetValue returns the flags value as string representation and an empty
|
// GetValue returns the flags value as string representation and an empty
|
||||||
// string if the flag takes no value at all.
|
// string if the flag takes no value at all.
|
||||||
GetValue() string
|
GetValue() string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user