Documentation ¶
Index ¶
- func BranchCompletion(flag, text string, maxCompletions int64) []prompt.Suggest
- func FileCompletion(flag, text string, maxCompletions int64) []prompt.Suggest
- func FilesystemCompletion(_, text string, maxCompletions int64) []prompt.Suggest
- func JobCompletion(_, text string, maxCompletions int64) []prompt.Suggest
- func PipelineCompletion(_, text string, maxCompletions int64) []prompt.Suggest
- func RegisterCompletionFunc(cmd *cobra.Command, completionFunc CompletionFunc)
- func RepoCompletion(_, text string, maxCompletions int64) []prompt.Suggest
- func Run(rootCmd *cobra.Command, maxCompletions int64)
- type CompletionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchCompletion ¶
BranchCompletion completes branch parameters of the form <repo>@<branch>
func FileCompletion ¶
FileCompletion completes file parameters of the form <repo>@<branch>:/file
func FilesystemCompletion ¶
FilesystemCompletion completes file parameters from the local filesystem (not from pfs).
func JobCompletion ¶
JobCompletion completes job parameters of the form <job>
func PipelineCompletion ¶
PipelineCompletion completes pipeline parameters of the form <pipeline>
func RegisterCompletionFunc ¶
func RegisterCompletionFunc(cmd *cobra.Command, completionFunc CompletionFunc)
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
func RepoCompletion ¶
RepoCompletion completes repo parameters of the form <repo>