internal

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidArgsFunction

func ValidArgsFunction(
	cliOpts *config.CliOpts,
	cmdCtx *cmdcontext.CmdCtx,
	cmd *cobra.Command,
	toComplete string,
	appPicker InstPicker,
	instPicker InstPicker,
) (args []string, directive cobra.ShellCompDirective)

ValidArgsFunction is the function used for dynamic auto-completion. In case of app's completion, it uses appPicker, instPicker otherwise.

Types

type InstPicker

type InstPicker func([]running.InstanceCtx) []string

InstPicker is function that takes a list of instances and returns some instance names.

Jump to

Keyboard shortcuts

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