Documentation
¶
Overview ¶
Package flags provides shell completion functions for cargoship CLI flags.
Index ¶
- func RegisterArchitectureFormat(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func RegisterKubeContext(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func RegisterLogFormat(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func RegisterLogLevel(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func RegisterOCIConcurrency(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func RegisterOutputFormat(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterArchitectureFormat ¶
func RegisterArchitectureFormat(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
RegisterArchitectureFormat provides shell completion suggestions for the architecture flag.
func RegisterKubeContext ¶ added in v0.42.0
func RegisterKubeContext(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
RegisterKubeContext provides shell completion suggestions for a kubeconfig context flag, taken from whichever kubeconfig the loading rules find.
A context name is not something an operator should have to remember or retype, and getting it wrong is only discovered as a connection failure against the wrong cluster. The suggestions carry the cluster each context points at, because a name alone frequently does not say.
An unreadable or absent kubeconfig yields no suggestions rather than an error: completion runs on every tab press, and a shell is not where a configuration problem should be reported.
func RegisterLogFormat ¶
RegisterLogFormat provides shell completion suggestions for the log-format flag.
func RegisterLogLevel ¶
RegisterLogLevel provides shell completion suggestions for the log-level flag.
func RegisterOCIConcurrency ¶
func RegisterOCIConcurrency(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
RegisterOCIConcurrency provides shell completion suggestions for the OCI concurrency flag.
func RegisterOutputFormat ¶
func RegisterOutputFormat(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
RegisterOutputFormat provides shell completion suggestions for the output format flag.
Types ¶
This section is empty.