Documentation ¶
Index ¶
- func AutocompleteArch(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func AutocompleteCapabilities(_ *cobra.Command, _ []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompleteDefault(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func AutocompleteJSONFormat(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func AutocompleteNone(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func AutocompleteOS(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func AutocompleteOneArg(_ *cobra.Command, args []string, _ string) ([]string, cobra.ShellCompDirective)
- func AutocompletePlatform(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func AutocompleteSubgidName(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func AutocompleteSubuidName(_ *cobra.Command, _ []string, _ 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
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 ¶
AutocompleteNone - Block the default shell completion (no paths)
func AutocompleteOS ¶ added in v0.32.0
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()