cmd

package
v0.0.0-...-f2bac28 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args []string

type Command

type Command struct {
	Name        string
	Handler     CommandHandler
	UsageHelp   string
	Description string
	Examples    string
	FlagSet     *flag.FlagSet
	// contains filtered or unexported fields
}

func (*Command) AddSubCommand

func (c *Command) AddSubCommand(subCmd *Command)

func (Command) PrintUsage

func (c Command) PrintUsage()

func (*Command) Run

func (c *Command) Run()

type CommandHandler

type CommandHandler func(*Command, Args)

type Commands

type Commands map[string]*Command

Jump to

Keyboard shortcuts

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