package
5.21.5+incompatible
Repository: https://github.com/sensu/sensu-go.git
Documentation: pkg.go.dev
# Functions
ConfigurationPresent - unless the given command specifies that configuration is not required, func checks that host & access-token have been configured.
# Constants
ConfigurationNotRequired specifies that the command does not require credentials to be configured to complete operations.
ConfigurationRequirement used to identify the annotation flag for this handler
Usage:
my_cmd := cobra.Command{ Use: "Setup", Annotations: map[string]string{ ConfigurationRequirement: ConfigurationNotRequired, } }.