cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 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 Command

type Command struct {
	Name    string
	Help    string
	Cmd     *argparse.Command
	Context interface{}
	Init    InitHandler
	Logic   LogicHandler
}

func (*Command) IsInvoked

func (c *Command) IsInvoked() bool

func (*Command) Register

func (c *Command) Register(parser *argparse.Parser)

func (*Command) Service

func (c *Command) Service()

type InitHandler

type InitHandler func(cmd *Command)

type LogicHandler

type LogicHandler func(cmd *Command)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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