cmd

package
v0.0.0-...-cf73d06 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client ...

func (*Client) Desc

func (cmd *Client) Desc() string

func (*Client) Name

func (cmd *Client) Name() string

func (*Client) Run

func (cmd *Client) Run(args ...string)

func (*Client) Usage

func (cmd *Client) Usage()

type Command

type Command interface {
	Name() string
	Desc() string
	Usage()
	Run(args ...string)
}

type Help

type Help struct {
	Commands []Command
}

func (*Help) Desc

func (cmd *Help) Desc() string

func (*Help) Name

func (cmd *Help) Name() string

func (*Help) Run

func (cmd *Help) Run(args ...string)

func (*Help) Usage

func (cmd *Help) Usage()

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) Desc

func (cmd *Server) Desc() string

func (*Server) Name

func (cmd *Server) Name() string

func (*Server) Run

func (cmd *Server) Run(args ...string)

func (*Server) Usage

func (cmd *Server) Usage()

type Version

type Version struct {
	BuildCommit string
	BuildDate   string
}

func (*Version) Desc

func (cmd *Version) Desc() string

func (*Version) Name

func (cmd *Version) Name() string

func (*Version) Run

func (cmd *Version) Run(args ...string)

func (*Version) Usage

func (cmd *Version) Usage()

Jump to

Keyboard shortcuts

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