Documentation ¶
Overview ¶
Package cliutil contains helper functions for cli and clicommand
Index ¶
- Constants
- Variables
- func FormatFlag(flagName string) string
- func GetAgentIdentity() (identity.IAgentIdentity, error)
- func GetFlag(val string) string
- func IsFlag(val string) bool
- func IsHelp(subcommands []string, parameters map[string][]string) bool
- func Register(command CliCommand)
- func ValidJson(s string) bool
- func ValidUrl(s string) bool
- type CliCommand
Constants ¶
View Source
const ( HelpFlag = "help" SsmCliName = "ssm-cli" CLI_PARSE_FAIL_EXITCODE = 2 CLI_COMMAND_FAIL_EXITCODE = 255 CLI_SUCCESS_EXITCODE = 0 )
Variables ¶
View Source
var CliCommands map[string]CliCommand
CliCommands is the set of support commands
Functions ¶
func FormatFlag ¶
FormatFlag returns a parameter name formatted as a command line flag
func GetAgentIdentity ¶
func GetAgentIdentity() (identity.IAgentIdentity, error)
GetAgentIdentity returns the agent identity and only initializes it once
Types ¶
Click to show internal directories.
Click to hide internal directories.