cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(version, commit, date string)

Types

type ArgInfo

type ArgInfo struct {
	Name     string `json:"name"`
	Required bool   `json:"required"`
}

type CommandInfo

type CommandInfo struct {
	Command     string     `json:"command"`
	Description string     `json:"description"`
	Flags       []FlagInfo `json:"flags,omitempty"`
	Args        []ArgInfo  `json:"args,omitempty"`
}

type FlagInfo

type FlagInfo struct {
	Name        string `json:"name"`
	Shorthand   string `json:"shorthand,omitempty"`
	Type        string `json:"type"`
	Default     string `json:"default,omitempty"`
	Description string `json:"description"`
	Required    bool   `json:"required,omitempty"`
}

Jump to

Keyboard shortcuts

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