Documentation
¶
Index ¶
- Constants
- func ApplyMiddleware(commands []*cli.Command, chain *ActionChain)
- func LoadEnvFile(ctx *cli.Context) error
- func WithCommandMetricsContext(ctx *cli.Context) error
- func WithFirstRunTelemetryPrompt(cCtx *cli.Context) error
- func WithMetricEmission(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 LoadEnvFile ¶
func WithFirstRunTelemetryPrompt ¶
WithFirstRunTelemetryPrompt handles first-run 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.