# Functions
AddContextFlag adds `context` flag to given cobra command.
AddNowFlag adds `now` flag to given cobra command.
ApplyIgnore will take the current ignores []string and either ignore it (if .odoignore is used) or find the .gitignore file in the directory and use that instead.
CheckMachineReadableOutputCommand performs machine-readable output functions required to have it work correctly.
Client returns an oc client configured for this command's options.
ClientWithConnectionCheck returns an oc client configured for this command's options but forcing the connection check status to the value of the provided bool, skipping it if true, checking the connection otherwise.
FlagValueIfSet retrieves the value of the specified flag if it is set for the given command.
No description provided by the author
No description provided by the author
NewConfigContext is a special kind of context which only contains local configuration, other information is not retrived from the cluster.
NewContext creates a new Context struct populated with the current state based on flags specified for the provided command.
NewContextCompletion disables checking for a local configuration since when we use autocompletion on the command line, we couldn't care less if there was a configuriation.
NewContextCreatingAppIfNeeded creates a new Context struct populated with the current state based on flags specified for the provided command, creating the application if none already exists.
NewDevfileContext creates a new Context struct populated with the current state based on flags specified for the provided command.
No description provided by the author
ResolveAppFlag resolves the app from the flag.
UpdatedContext returns a new context updated from config file.
# Constants
ApplicationFlagName is the name of the flag allowing a user to specify which application to operate on.
ComponentFlagName is the name of the flag allowing a user to specify which component to operate on.
ContextFlagName is the name of the flag allowing a user to specify the location of the component settings.
DefaultAppName is the default name of the application when an application name is not provided.
OutputFlagName is the name of the flag allowing user to specify output format.
ProjectFlagName is the name of the flag allowing a user to specify which project to operate on.
# Structs
Context holds contextual information useful to commands such as correctly configured client, target project and application (based on specified flag values) and provides for a way to retrieve a given component given this context.
# Interfaces
No description provided by the author