flags

package
v0.42.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package flags provides shell completion functions for cargoship CLI flags.

Index

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

func RegisterLogFormat(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

RegisterLogFormat provides shell completion suggestions for the log-format flag.

func RegisterLogLevel

func RegisterLogLevel(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL