cmd

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownSubcommand = errors.New("unknown subcommand")

Functions

func External added in v0.3.6

func External(args []string, original error) error

func Root

func Root(args []string) error

Types

type AttachCmd

type AttachCmd struct {
	Cmd
}

func NewAttachCmd

func NewAttachCmd() *AttachCmd

func (*AttachCmd) Run

func (c *AttachCmd) Run() error

type CatCmd

type CatCmd struct {
	Cmd
}

func NewCatCmd

func NewCatCmd() *CatCmd

func (*CatCmd) Run

func (c *CatCmd) Run() error

type Cmd

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

func (*Cmd) Alias

func (c *Cmd) Alias() []string

func (*Cmd) Init

func (c *Cmd) Init(args []string) error

func (*Cmd) Name

func (c *Cmd) Name() string

func (*Cmd) Run

func (c *Cmd) Run() error

type EditCmd

type EditCmd struct {
	Cmd
}

func NewEditCmd

func NewEditCmd() *EditCmd

func (*EditCmd) Run

func (c *EditCmd) Run() error

type EnvCmd

type EnvCmd struct {
	Cmd
	// contains filtered or unexported fields
}

func NewEnvCmd

func NewEnvCmd() *EnvCmd

func (*EnvCmd) Run

func (c *EnvCmd) Run() error

type GetCmd

type GetCmd struct {
	Cmd
	// contains filtered or unexported fields
}

func NewGetCmd

func NewGetCmd() *GetCmd

func (*GetCmd) Run

func (c *GetCmd) Run() error

type InitCmd

type InitCmd struct {
	Cmd
}

func NewInitCmd

func NewInitCmd() *InitCmd

func (*InitCmd) Run

func (c *InitCmd) Run() error

type KillCmd

type KillCmd struct {
	Cmd
	// contains filtered or unexported fields
}

func NewKillCmd

func NewKillCmd() *KillCmd

func (*KillCmd) Run

func (c *KillCmd) Run() error

type ListCmd

type ListCmd struct {
	Cmd
	// contains filtered or unexported fields
}

func NewListCmd

func NewListCmd() *ListCmd

func (*ListCmd) Run

func (c *ListCmd) Run() error

type NewCmd

type NewCmd struct {
	Cmd
	// contains filtered or unexported fields
}

func NewNewCmd

func NewNewCmd() *NewCmd

func (*NewCmd) Run

func (c *NewCmd) Run() error

type Runner

type Runner interface {
	Init([]string) error
	Run() error
	Name() string
	Alias() []string
}

type SendCmd

type SendCmd struct {
	Cmd
	// contains filtered or unexported fields
}

func NewSendCmd

func NewSendCmd() *SendCmd

func (*SendCmd) Run

func (c *SendCmd) Run() error

Jump to

Keyboard shortcuts

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