Documentation
¶
Index ¶
- Constants
- func ApplyMiddleware(commands []*cli.Command, chain *ActionChain)
- func InitVersionCheck(cCtx *cli.Context)
- func LoadEnvFile(ctx *cli.Context) error
- func WithCommandMetricsContext(ctx *cli.Context) error
- func WithFirstRunSetup(cCtx *cli.Context) error
- func WithMetricEmission(action cli.ActionFunc) cli.ActionFunc
- func WithVersionCheck(action cli.ActionFunc) cli.ActionFunc
- type ActionChain
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 InitVersionCheck ¶ added in v0.2.6
InitVersionCheck starts an async version check for prod builds
func LoadEnvFile ¶
func WithFirstRunSetup ¶
WithFirstRunSetup handles first-run environment and telemetry setup
func WithMetricEmission ¶
func WithMetricEmission(action cli.ActionFunc) cli.ActionFunc
func WithVersionCheck ¶ added in v0.2.6
func WithVersionCheck(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.