cli

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type Capabilities

type Capabilities struct {
	Version    string                 `json:"version"`
	Commands   map[string]CommandInfo `json:"commands"`
	GlobalOpts GlobalOpts             `json:"globalOptions"`
}

func GetCapabilities

func GetCapabilities() Capabilities

type CommandInfo

type CommandInfo struct {
	Use         string   `json:"use"`
	Short       string   `json:"short"`
	Subcommands []string `json:"subcommands,omitempty"`
	Examples    []string `json:"examples,omitempty"`
}

type GlobalOpts

type GlobalOpts struct {
	Profile string   `json:"profile"`
	Format  []string `json:"format"`
}

type OutputFormat

type OutputFormat string
const (
	FormatTable OutputFormat = "table"
	FormatJSON  OutputFormat = "json"
	FormatYAML  OutputFormat = "yaml"
)

func (*OutputFormat) Set

func (f *OutputFormat) Set(value string) error

func (*OutputFormat) String

func (f *OutputFormat) String() string

func (*OutputFormat) Type

func (f *OutputFormat) Type() string

Jump to

Keyboard shortcuts

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