completion

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 99

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutocompleteArch added in v0.32.0

func AutocompleteArch(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

AutocompleteArch - Autocomplete architectures supported by container engines

func AutocompleteCapabilities added in v0.24.0

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

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

func AutocompleteDefault

func AutocompleteDefault(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

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

func AutocompleteNone

func AutocompleteNone(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

AutocompleteNone - Block the default shell completion (no paths)

func AutocompleteOS added in v0.32.0

func AutocompleteOS(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

AutocompleteOS - Autocomplete OS supported by container engines

func AutocompletePlatform added in v0.32.0

func AutocompletePlatform(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

AutocompleteArch - Autocomplete platform supported by container engines

func AutocompleteSubgidName added in v0.24.0

func AutocompleteSubgidName(cmd *cobra.Command, args []string, toComplete 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(cmd *cobra.Command, args []string, toComplete 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