cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type Command

type Command struct {
	Name   string
	Parent string
	Short  string
	Flags  []*Flag
}

func (*Command) Format

func (c *Command) Format() string

type Flag

type Flag struct {
	Name        string
	Shorthand   string
	Value       string
	Description string
}

func (*Flag) Format

func (flag *Flag) Format(cmdName string) string

Jump to

Keyboard shortcuts

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