cmd

package
v0.0.0-...-78985d9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalFlags = pflag.NewFlagSet("pogo", pflag.ExitOnError)

	GlobalFmt     = GlobalFlags.String("fmt", "", "Path to a directory containing custom formats")
	GlobalVersion = GlobalFlags.String("version", "9.99", "Path of Exile version to assume for formats")
	GlobalVerbose = GlobalFlags.CountP("verbose", "v", "display more details (repeatable)")
)

Functions

func AddCommand

func AddCommand(c *Command)

func Run

func Run()

Types

type Command

type Command struct {
	Name               string
	Aliases            []string
	Description, Usage string

	MinArgs, MaxArgs int
	Flags            *pflag.FlagSet

	Action func(args []string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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