Documentation ¶
Overview ¶
Package utils contains all the utility functions.
Package utils contains all the utility functions.
Index ¶
- Constants
- Variables
- func DisplayCommandUsage(out io.Writer)
- func DisplayHelp(out io.Writer)
- func DisplaySupportedCommands(out io.Writer)
- func FormatFlag(flagName string) string
- func GetFlag(val string) string
- func IsFlag(val string) bool
- func IsHelp(subcommand string, parameters map[string][]string) bool
- func Register(command SsmCliCommand)
- type SsmCliCommand
Constants ¶
View Source
const ( HelpFlag = "help" SsmCliName = "ssmcli" FlagPrefix = "--" )
Variables ¶
View Source
var SsmCliCommands map[string]SsmCliCommand
CliCommands is the set of support commands
Functions ¶
func DisplayCommandUsage ¶
DisplayCommandUsage prints cli usage info to console
func DisplaySupportedCommands ¶
DisplaySupportedCommands prints a list of supported cli commands to the console
func FormatFlag ¶
FormatFlag returns a parameter name formatted as a command line flag
Types ¶
Click to show internal directories.
Click to hide internal directories.