Documentation
¶
Overview ¶
Package complete produces shell-completion suggestions for `posh execute` invocations by reusing the same readline-driven dispatch that the interactive prompt uses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Suggest ¶
func Suggest(ctx context.Context, l log.Logger, cmds command.Commands, args []string, toComplete string) []string
Suggest parses (args, toComplete) into a readline state, dispatches to the matching command's completer interface, and returns suggestions in cobra's `value\tdescription` format. Suggestions are prefix-filtered by toComplete.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.