Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagSetVarWithCompletion

func FlagSetVarWithCompletion(
	flagSet interfaces.CLIFlagDefinitions, value FlagValueWithCompetion,
	key string,
)

Types

type CLICompleter

type CLICompleter interface {
	GetCLICompletion() map[string]string
}

TODO add support for comma-separated values

type FlagSet

type FlagSet = flags.FlagSet

type FlagValueWithCompetion

type FlagValueWithCompetion interface {
	interfaces.FlagValue
	CLICompleter
}

Source Files

  • completion.go
  • flag_set.go

Jump to

Keyboard shortcuts

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