cmd

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(c Commander)

func List

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

func NewJob

func NewJob(scmd *scheduleCommand) *job

func ScheduleCommandList

func ScheduleCommandList() *[]*scheduleCommand

Types

type Arg

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

func (*Arg) Get

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

type Commander

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

type Schedule

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

func NewSchedule

func NewSchedule() *Schedule

func (*Schedule) Command

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