Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface {
// DefaultFlagSet returns a `flag.FlagSet` instance with required flags and their default values assigned.
DefaultFlagSet(context.Context) (*flag.FlagSet, error)
// Run will run the code implementing the `Application` interface using a default flag set.
Run(context.Context) error
// Run will run the code implementing the `Application` interface using a custom flag set.
RunWithFlagSet(context.Context, *flag.FlagSet) error
}
type Application defines a common interface for command-line applications.
Click to show internal directories.
Click to hide internal directories.