Documentation
¶
Overview ¶
Package completion exposes shell-completion helpers backed by static enums and on-disk config.
Index ¶
- type CompFunc
- func AliasNames() CompFunc
- func AtHead() CompFunc
- func AtMe() CompFunc
- func ConfigKeys() CompFunc
- func ConfiguredServers() CompFunc
- func Fixed(values ...string) CompFunc
- func GitBranches() CompFunc
- func HTTPMethods() CompFunc
- func JobTreeOnly() CompFunc
- func LinkScopes() CompFunc
- func LinkedJobs() CompFunc
- func LinkedProjects() CompFunc
- func RunStatuses() CompFunc
- func SSHKeyTypes() CompFunc
- func SkillAgents() CompFunc
- func SkillNames() CompFunc
- func VCSAuthMethods() CompFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompFunc ¶
type CompFunc func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompFunc matches cobra's ValidArgsFunction and RegisterFlagCompletionFunc signature.
func AliasNames ¶
func AliasNames() CompFunc
AliasNames completes user-defined alias names from local config.
func ConfigKeys ¶
func ConfigKeys() CompFunc
ConfigKeys completes `config get|set <key>` from config.ValidKeys.
func ConfiguredServers ¶
func ConfiguredServers() CompFunc
ConfiguredServers completes server URLs from the local config file.
func GitBranches ¶
func GitBranches() CompFunc
GitBranches completes branch flags from local refs/heads, prefixed with @this.
func LinkScopes ¶
func LinkScopes() CompFunc
LinkScopes completes `link --scope` from existing path scopes in teamcity.toml.
func LinkedJobs ¶
func LinkedJobs() CompFunc
LinkedJobs completes job/pipeline IDs from teamcity.toml in the cwd's ancestry.
func LinkedProjects ¶
func LinkedProjects() CompFunc
LinkedProjects completes project IDs from teamcity.toml; always includes _Root.
func RunStatuses ¶
func RunStatuses() CompFunc
RunStatuses completes `run list --status`; mirrors resolveRunListStatus.
func SkillAgents ¶
func SkillAgents() CompFunc
SkillAgents completes `skill --agent` from instill.AgentNames.
func SkillNames ¶
func SkillNames() CompFunc
SkillNames completes skill names from the bundled skills FS.
func VCSAuthMethods ¶
func VCSAuthMethods() CompFunc
VCSAuthMethods completes `project vcs create --auth`.