Documentation ¶
Index ¶
- func AutocompleteArch(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteCapabilities(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteDefault(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteJSONFormat(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteNone(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteOS(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteOneArg(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompletePlatform(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteSubgidName(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteSubuidName(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteCommandFlags(cmd *cobra.Command, flags FlagCompletions)
- type FlagCompletions
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 AutocompleteJSONFormat ¶ added in v0.35.1
func AutocompleteJSONFormat(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
AutocompleteJSONFormat - Autocomplete format flag option. -> "json"
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 AutocompleteOneArg ¶ added in v0.35.1
func AutocompleteOneArg(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
AutocompleteOneArg - Autocomplete one random arg
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()