Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionFunc ¶
type Command ¶
type Command struct { // Init method to invoke dependencies Init func(di Container) error // An action to execute after any subcommands are run, but after the subcommand has finished // It is run even if Action() panics After cli.AfterFunc // An action to execute before any sub-subcommands are run, but after the context is ready // If a non-nil error is returned, no sub-subcommands are run Before cli.BeforeFunc // The function to call when this command is invoked Action ActionFunc // The name of the command Name string // short name of the command. Typically one character (deprecated, use `Aliases`) ShortName string // A list of aliases for the command Aliases []string // A short description of the usage of this command Usage string }
type Container ¶
type Container interface { Invoke(function interface{}, opts ...InvokeOption) error Provide(constructor interface{}, opts ...ProvideOption) error }
type InvokeOption ¶
type InvokeOption = dig.InvokeOption
type ProvideOption ¶
type ProvideOption = dig.ProvideOption
Click to show internal directories.
Click to hide internal directories.