cmd

package
v0.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

func Execute

func Execute()

func MapCustomEnvsToInternalEnvs added in v0.5.0

func MapCustomEnvsToInternalEnvs(envNamePrefix string, envNameMapPrefix string)

func ReplaceCommandName added in v0.0.5

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

Types

type CommandInfo added in v0.12.0

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 added in v0.5.0

type Commands struct {
	Command     string
	Description string
}

type FlagInfo added in v0.12.0

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