cli

package
v0.0.0-...-03830f7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmdline

type Cmdline struct {
	Cmd         string
	Example     string
	Description string
	Handler     Handler
}

Cmdline struct ...

func NewCacheCmd

func NewCacheCmd(conf *config.Cli) *Cmdline

NewCacheCmd ...

func NewCountCmd

func NewCountCmd(conf *config.Cli) *Cmdline

NewCountCmd ...

func NewHelpCmd

func NewHelpCmd(cmds []*Cmdline) *Cmdline

NewHelpCmd ...

func NewQuitCmd

func NewQuitCmd() *Cmdline

NewQuitCmd ...

type Handler

type Handler interface {
	Handle(args []string) (resp string, err error)
}

Handler Interface ...

type Parser

type Parser interface {
	Parse(cmd string) error
}

Parser ...

func NewParser

func NewParser(conf *config.Cli) Parser

NewParser ...

Jump to

Keyboard shortcuts

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