Documentation ¶
Index ¶
- Constants
- Variables
- func Run(runner Runner)
- func WithExecutors[T FlagType](executors map[T]Executor) cfg.Option[Config[T]]
- func WithFlag[T FlagType](flag string, zero T, description string) cfg.Option[Config[T]]
- func WithOneOf[T FlagType](selectors ...T) cfg.Option[Config[T]]
- func WithValidation[T FlagType](isValid func(*T) error) cfg.Option[Config[T]]
- type Config
- type Executable
- type Executor
- type FlagType
- type Runner
- type Valuer
Constants ¶
View Source
const ( ErrUnsupported = errs.Kind("unsupported") ErrParameter = errs.Entity("parameter") )
Variables ¶
View Source
var ( ErrInvalidOption = errors.New("invalid option") ErrUnsupportedOption = errors.New("unsupported option") )
View Source
var ErrUnsupportedParameter = errs.WithDomain(domainErr, ErrUnsupported, ErrParameter)
Functions ¶
Types ¶
type Executable ¶
Click to show internal directories.
Click to hide internal directories.