completion

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 SkillGuideArgs added in v1.7.0

func SkillGuideArgs() CompFunc

SkillGuideArgs completes `skill guide [skill] [topic]`: skill names, then that skill's topics.

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