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

commands

package
v0.29.31 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 44 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

func StrongholdSubcommands added in v0.29.29

func StrongholdSubcommands() []*cobra.Command

StrongholdSubcommands builds a cobra command tree from the vault CLI command registry (via CommandSynopses). This keeps synopses in sync with initCommands and respects build tags (e.g. clionly omits server/agent). Cobra exposes the structure to help and help-json; execution still goes through vaultcommand.Run.

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