Versions in this module Expand all Collapse all v0 v0.1.3 Feb 23, 2020 Changes in this version + func NewCommand(h Handler, init Init) *std_cobra.Command + func NewHandler(h Handler) *std_cobra.Command + type Config struct + func (c *Config) BindEnvToAllFlags(cmd *std_cobra.Command) + func (c *Config) Init(envPrefix string, cmd *std_cobra.Command) *std_cobra.Command + func (c *Config) KeyUsageString(key string) string + func (c *Config) MissingRequiredKeyStrings() (missing []string) + func (c *Config) PreRun() (showUsage bool, _ error) + func (c *Config) RequiredKeyStrings() (required []string) + func (c *Config) SetRequired(keys ...string) + type Handler interface + BindFlags func(*std_cobra.Command) (requiredFlags []string) + Init func() Init + Run func(context.Context, handler.Input) + type Init struct + Cmd *std_cobra.Command + Ctx context.Context + EnvPrefix string + Mixins []handler.Mixin