Versions in this module Expand all Collapse all v1 v1.2.6 Aug 31, 2020 Changes in this version + const ApplicationFlagName + const ComponentFlagName + const ContextFlagName + const DefaultAppName + const OutputFlagName + const ProjectFlagName + func AddContextFlag(cmd *cobra.Command, setValueTo *string) + func AddNowFlag(cmd *cobra.Command, setValueTo *bool) + func ApplyIgnore(ignores *[]string, sourcePath string) (err error) + func CheckMachineReadableOutputCommand(cmd *cobra.Command) + func Client(command *cobra.Command) *occlient.Client + func ClientWithConnectionCheck(command *cobra.Command, skipConnectionCheck bool) *occlient.Client + func FlagValueIfSet(cmd *cobra.Command, flagName string) string + func GenericRun(o Runnable, cmd *cobra.Command, args []string) + func GetContextFlagValue(command *cobra.Command) string + func ResolveAppFlag(command *cobra.Command) string + type Context struct + func NewConfigContext(command *cobra.Command) *Context + func NewContext(command *cobra.Command, ignoreMissingConfiguration ...bool) *Context + func NewContextCompletion(command *cobra.Command) *Context + func NewContextCreatingAppIfNeeded(command *cobra.Command) *Context + func NewDevfileContext(command *cobra.Command, ignoreMissingConfiguration ...bool) *Context + func NewFakeContext(project, application, component string, client *occlient.Client, ...) *Context + func UpdatedContext(context *Context) (*Context, *config.LocalConfigInfo, error) + func (o *Context) Component(optionalComponent ...string) string + func (o *Context) ComponentAllowingEmpty(allowEmpty bool, optionalComponent ...string) string + type Runnable interface + Complete func(name string, cmd *cobra.Command, args []string) error + Run func() error + Validate func() error