cmd

package
v0.0.0-...-0a50f52 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	Func    func(cli.BeforeFunc) cli.BeforeFunc
	Command *cli.BoolFlag
	Args    []cli.Flag
}

Middleware is a command middleware

type OTC

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

OTC is where to register your new commands

func (*OTC) Commands

func (o *OTC) Commands() []*cli.Command

Commands returns the registered commands

func (*OTC) RegisterGetter

func (o *OTC) RegisterGetter(g ...*cli.Command)

RegisterGetter registers a new getter

func (*OTC) RegisterMiddleware

func (o *OTC) RegisterMiddleware(m ...Middleware)

RegisterMiddleware registers a middleware

func (*OTC) RegisterRunner

func (o *OTC) RegisterRunner(r ...*cli.Command)

RegisterRunner registers a new ruunner

func (*OTC) RegisterStorer

func (o *OTC) RegisterStorer(s ...*cli.Command)

RegisterStorer registers a new storer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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