Documentation ¶
Index ¶
- Constants
- Variables
- func AddFormatFlag(formatVar *string, categoryCmd *kingpin.CmdClause, allowedFormats ...string)
- func DefaultTable() *tablewriter.Table
- func DurafmtSince(d time.Time) *durafmt.Durafmt
- func GetSSHArgs(args []string) (preSSH []string, postSSH []string)
- func GlobalAndCategorizedCmd(globalApp *kingpin.Application, categoryCmd *kingpin.CmdClause, ...)
- func InitializeAPIClient(config *global.Config) func(c *kingpin.ParseContext) error
- func PrintWithFormat(obj interface{}, format string) error
- func RequireAccessKey(config *global.Config, c interface{}) interface{}
- func RequireProject(config *global.Config, c interface{}) interface{}
- func RequireVariableForPreAction(config *global.Config, variable *string, err error, c interface{}) interface{}
- type HasCommand
Constants ¶
View Source
const ( FormatTable string = "table" FormatJSON string = "json" FormatJSONStream string = "json-stream" FormatYAML string = "yaml" )
Variables ¶
View Source
var CustomTemplate string
Functions ¶
func AddFormatFlag ¶
func DefaultTable ¶
func DefaultTable() *tablewriter.Table
func GetSSHArgs ¶
func GlobalAndCategorizedCmd ¶
func GlobalAndCategorizedCmd(globalApp *kingpin.Application, categoryCmd *kingpin.CmdClause, do func(HasCommand))
func InitializeAPIClient ¶
func InitializeAPIClient(config *global.Config) func(c *kingpin.ParseContext) error
func PrintWithFormat ¶
func RequireAccessKey ¶
func RequireProject ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.