commands

package
v0.20.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapCustomEnvsToInternalEnvs

func MapCustomEnvsToInternalEnvs(envNamePrefix string, envNameMapPrefix string)

func NewDeliveryCommand

func NewDeliveryCommand() (*cobra.Command, context.Context)

func NewHelpJsonCommand

func NewHelpJsonCommand(rootCmd *cobra.Command) *cobra.Command

func NewKubectlCommand

func NewKubectlCommand() *cobra.Command

func NewLoginCommand

func NewLoginCommand() *cobra.Command

func NewStrongholdCommand

func NewStrongholdCommand() *cobra.Command

func NewVirtualizationCommand

func NewVirtualizationCommand() *cobra.Command

func ReplaceCommandName

func ReplaceCommandName(from, to string, c *cobra.Command) *cobra.Command

Types

type CommandInfo

type CommandInfo struct {
	Name        string              `json:"name,omitempty"`
	Description string              `json:"description"`
	Version     string              `json:"version,omitempty"`
	Aliases     []string            `json:"aliases"`
	Flags       map[string]FlagInfo `json:"flags"`
	Subcommands []CommandInfo       `json:"subcommands"`
}

type Commands

type Commands struct {
	Command     string
	Description string
}

type FlagInfo

type FlagInfo struct {
	Description string `json:"description"`
	Short       string `json:"shorthand"`
	Global      bool   `json:"global"`
}

Jump to

Keyboard shortcuts

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