CacheAll is a CacheFunc that always returns true (always use cached results).
CacheNone is a CacheFunc that always returns false (never cache anything).
RegisterCompletionFunc registers a completion function for a command. NOTE: RegisterCompletionFunc must be called before cmd is passed to functions that make copies of it (such as cmdutil.CreateAlias. This is because RegisterCompletionFunc modifies cmd in a superficial way by adding an annotation (to the Annotations field) that associates it with the completion function. This means that
Run runs a prompt, it does not return.
CacheFunc is a function which returns whether or not cached results from a previous call to a CompletionFunc can be reused.
AndCacheFunc ands 0 or more cache funcs together.
BranchCompletion completes branch parameters of the form <repo>@<branch>
FileCompletion completes file parameters of the form <repo>@<branch>:/file
FilesystemCompletion completes file parameters from the local filesystem (not from pfs).
JobCompletion completes job parameters of the form <job>
PipelineCompletion completes pipeline parameters of the form <pipeline>
RepoCompletion completes repo parameters of the form <repo>
SameFlag is a CacheFunc that returns true if the flags are the same.
CompletionFunc is a function which returns completions for a command.