Documentation
¶
Index ¶
Constants ¶
View Source
const EnvFile = ".env"
EnvFile is the name of the environment file
Variables ¶
This section is empty.
Functions ¶
func ApplyMiddleware ¶
func ApplyMiddleware(commands []*cli.Command, chain *ActionChain)
func LoadEnvFile ¶
func WithFirstRunSetup ¶
WithFirstRunSetup handles first-run environment and telemetry setup
func WithMetricEmission ¶
func WithMetricEmission(action cli.ActionFunc) cli.ActionFunc
Types ¶
type ActionChain ¶
type ActionChain struct {
Processors []func(action cli.ActionFunc) cli.ActionFunc
}
func (*ActionChain) Use ¶
func (ac *ActionChain) Use(processor func(action cli.ActionFunc) cli.ActionFunc)
Use appends a new processor to the chain
func (*ActionChain) Wrap ¶
func (ac *ActionChain) Wrap(action cli.ActionFunc) cli.ActionFunc
Click to show internal directories.
Click to hide internal directories.