Documentation ¶
Index ¶
- 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 AutocompleteNone(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 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 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()
Click to show internal directories.
Click to hide internal directories.