Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConfig = &Config{ Filter: filters.DefaultFilter, } )
View Source
var (
UConfig = &UpdateConfig{}
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ExecFile string `json:"execFile" pflag:",execution file name to be used for generating execution spec of a single launchplan."` Version string `json:"version" pflag:",version of the launchplan to be fetched."` Latest bool `json:"latest" pflag:", flag to indicate to fetch the latest version, version flag will be ignored in this case"` Filter filters.Filters `json:"filter" pflag:","` }
Config
type UpdateConfig ¶ added in v0.2.39
type UpdateConfig struct { Archive bool `json:"archive" pflag:",archive launchplan."` Activate bool `json:"activate" pflag:",activate launchplan."` DryRun bool `json:"dryRun" pflag:",execute command without making any modifications."` Version string `json:"version" pflag:",version of the launchplan to be fetched."` }
Config
func (UpdateConfig) GetPFlagSet ¶ added in v0.2.39
func (cfg UpdateConfig) GetPFlagSet(prefix string) *pflag.FlagSet
GetPFlagSet will return strongly types pflags for all fields in UpdateConfig and its nested types. The format of the flags is json-name.json-sub-name... etc.
Click to show internal directories.
Click to hide internal directories.