cli

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	cli.App
}
var App Application

func (*Application) Action

func (a *Application) Action(f CommandHandler)

func (*Application) After

func (a *Application) After(f CommandHandler)

func (*Application) Before

func (a *Application) Before(f CommandHandler)

func (*Application) Command

func (a *Application) Command(name, usage string, f CommandHandler) *Command

type Command

type Command struct {
	*cli.Command
}

func (*Command) Action

func (c *Command) Action(f CommandHandler)

func (*Command) After

func (c *Command) After(f CommandHandler)

func (*Command) Before

func (c *Command) Before(f CommandHandler)

type CommandHandler

type CommandHandler func(ctx *Context) error

type Context

type Context struct {
	*cli.Context
}

func (*Context) SetFlag added in v0.1.2

func (c *Context) SetFlag(name, value string) error

func (*Context) StoreValue added in v0.1.2

func (c *Context) StoreValue(key string, value interface{})

func (*Context) Value

func (c *Context) Value(key interface{}) interface{}

type Flag

type Flag = cli.Flag

type FlagBool

type FlagBool = cli.BoolFlag

type FlagDuration

type FlagDuration = cli.DurationFlag

type FlagFloat64

type FlagFloat64 = cli.Float64Flag

type FlagFloat64Slice

type FlagFloat64Slice = cli.Float64SliceFlag

type FlagGeneric

type FlagGeneric = cli.GenericFlag

type FlagInt

type FlagInt = cli.IntFlag

type FlagInt64

type FlagInt64 = cli.Int64Flag

type FlagInt64Slice

type FlagInt64Slice = cli.Int64SliceFlag

type FlagIntSlice

type FlagIntSlice = cli.IntSliceFlag

type FlagPath

type FlagPath = cli.PathFlag

type FlagString

type FlagString = cli.StringFlag

type FlagStringSlice

type FlagStringSlice = cli.StringSliceFlag

type FlagTimestamp

type FlagTimestamp = cli.TimestampFlag

type FlagUint

type FlagUint = cli.UintFlag

type FlagUint64

type FlagUint64 = cli.Uint64Flag

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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