completion

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package completion exposes shell-completion helpers backed by static enums and on-disk config.

Index

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 AtHead

func AtHead() CompFunc

AtHead completes `--revision` with the @head token.

func AtMe

func AtMe() CompFunc

AtMe completes `run list --user` with the @me token.

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 Fixed

func Fixed(values ...string) CompFunc

Fixed returns a CompFunc serving values with file completion suppressed.

func GitBranches

func GitBranches() CompFunc

GitBranches completes branch flags from local refs/heads, prefixed with @this.

func HTTPMethods

func HTTPMethods() CompFunc

HTTPMethods completes `api -X/--method`.

func JobTreeOnly

func JobTreeOnly() CompFunc

JobTreeOnly completes `job tree --only`.

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 SSHKeyTypes

func SSHKeyTypes() CompFunc

SSHKeyTypes completes `project ssh generate --type`.

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`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL