Documentation
¶
Overview ¶
Package completion generates shell tab-completion scripts for databricks-* proxy binaries. Scripts are produced from a []FlagDef slice so they stay in sync with the binary's actual flag set — adding a flag to the slice updates completions automatically.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBash ¶
GenerateBash returns a bash completion script for the given binary and flags.
func GenerateFish ¶
GenerateFish returns a fish completion script for the given binary and flags.
func GenerateZsh ¶
GenerateZsh returns a zsh completion script for the given binary and flags.
Types ¶
type FlagDef ¶
type FlagDef struct {
Name string // flag name without "--", e.g. "profile"
Short string // single-char alias without "-", e.g. "v" (empty = none)
Description string // human-readable description shown in completions
TakesArg bool // true if the flag consumes the next token as its value
Completer string // named completer function (empty = no value completion)
}
FlagDef describes one CLI flag for completion generation.
Click to show internal directories.
Click to hide internal directories.