Documentation
¶
Overview ¶
Package configure contains commands to inspect and manipulate the CLI global confuguration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyToken = errors.New("token cannot be empty")
ErrEmptyToken is returned when a user tries to supply an emtpy string as a token in the configure command.
Functions ¶
This section is empty.
Types ¶
type APIClientFactory ¶
APIClientFactory allows the configure command to regenerate the global Fastly API client when a new token is provided, in order to validate that token. It's a redeclaration of the app.APIClientFactory to avoid an import loop.
type RootCommand ¶
RootCommand is the parent command for all subcommands in this package. It should be installed under the primary root command.
func NewRootCommand ¶
func NewRootCommand(parent common.Registerer, configFilePath string, cf APIClientFactory, globals *config.Data) *RootCommand
NewRootCommand returns a new command registered in the parent.
Click to show internal directories.
Click to hide internal directories.