completion

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 98

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutocompleteArch added in v0.32.0

func AutocompleteArch(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteArch - Autocomplete architectures supported by container engines

func AutocompleteCapabilities added in v0.24.0

func AutocompleteCapabilities(_ *cobra.Command, _ []string, toComplete string) ([]string, cobra.ShellCompDirective)

AutocompleteCapabilities - Autocomplete linux capabilities options. Used by --cap-add and --cap-drop.

func AutocompleteDefault

func AutocompleteDefault(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteDefault - Use the default shell completion, allows path completion.

func AutocompleteJSONFormat added in v0.35.1

func AutocompleteJSONFormat(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteJSONFormat - Autocomplete format flag option. -> "json"

func AutocompleteNone

func AutocompleteNone(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteNone - Block the default shell completion (no paths)

func AutocompleteOS added in v0.32.0

func AutocompleteOS(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteOS - Autocomplete OS supported by container engines

func AutocompleteOneArg added in v0.35.1

func AutocompleteOneArg(_ *cobra.Command, args []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteOneArg - Autocomplete one random arg

func AutocompletePlatform added in v0.32.0

func AutocompletePlatform(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteArch - Autocomplete platform supported by container engines

func AutocompleteSubgidName added in v0.24.0

func AutocompleteSubgidName(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteSubgidName - Autocomplete subgidname based on the names in the /etc/subgid file.

func AutocompleteSubuidName added in v0.24.0

func AutocompleteSubuidName(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

AutocompleteSubuidName - Autocomplete subuidname based on the names in the /etc/subuid file.

func CompleteCommandFlags

func CompleteCommandFlags(cmd *cobra.Command, flags FlagCompletions)

CompleteCommandFlags - Add completion functions for each flagname in FlagCompletions.

Types

type FlagCompletions

type FlagCompletions map[string]func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

FlagCompletions - hold flag completion functions to be applied later with CompleteCommandFlags()

Jump to

Keyboard shortcuts

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