cmd

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v0.5.7

func Add(c Commander)

func List added in v0.5.7

func List() (cmdList []cli.Command)

func NewJob added in v0.5.7

func NewJob(scmd *scheduleCommand) *job

func ScheduleCommandList added in v0.7.10

func ScheduleCommandList() *[]*scheduleCommand

Types

type Arg added in v0.5.7

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

func (*Arg) Get added in v0.5.7

func (a *Arg) Get(argName string) (data *string, err error)

type Commander added in v0.5.7

type Commander interface {
	Command() string
	Description() string
	Handler(arg *Arg) error
}

type Schedule added in v0.5.7

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

func NewSchedule added in v0.5.7

func NewSchedule() *Schedule

func (*Schedule) Command added in v0.5.7

func (s *Schedule) Command(commandWithArgData string) *scheduleCommand

Directories

Path Synopsis
commands

Jump to

Keyboard shortcuts

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