cli

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandMap = map[string]Func{
	"config": SetAccount(),
	"login":  Login(),
	"logout": Logout(),
	"info":   GetInfo(),
	"update": Update(),

	"help": Help(),
}

Functions

func CmdList

func CmdList() string

func HasUpdate

func HasUpdate() (ok bool, version string, dist string)

func Version

func Version()

Types

type Client

type Client struct {
	LogLevel log.Level
	Cmd      string
	Params   []string
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) Handle

func (s *Client) Handle()

type Func

type Func func(cmd string, params ...string)

func GetInfo

func GetInfo() Func

func Help

func Help() Func

func Login

func Login() Func

func Logout

func Logout() Func

func SetAccount

func SetAccount() Func

func Update

func Update() Func

Jump to

Keyboard shortcuts

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