Documentation
¶
Overview ¶
Package aliases expands built-in command shortcuts without executing a shell.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expand ¶
Expand substitutes arguments without re-parsing or executing user input. Only the invoked alias is checked, so one broken entry cannot block other commands.
func ExpandCompletion ¶
func ExpandCompletion(args []string, definitions map[string]string, builtins map[string]bool) ([]string, error)
ExpandCompletion keeps the in-progress word last, as Cobra's completion protocol requires. Fixed flags after a substituted argument must not become the completion prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.