Help us shape the future of Go! Take the 2026 Go Developer Survey

commands

package
v0.29.10 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelpUsername = "user"

Functions

func NewDeliveryCommand

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

func NewHelpJSONCommand added in v0.20.9

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 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