complete

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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