Documentation ¶
Overview ¶
Package cmd 命令行辅助方法
Index ¶
- func Add(c Commander)
- func Error(msg string)
- func Exit(msg string)
- func ExitIf(err error)
- func List() (cmdList []cli.Command)
- func ScheduleCommandList() *[]*ScheduleCommand
- func Success(msg string)
- func Warning(msg string)
- type Arg
- type Commander
- type Job
- type Model
- type Models
- type Schedule
- type ScheduleCommand
- func (sc *ScheduleCommand) Daily()
- func (sc *ScheduleCommand) EveryDays(d uint)
- func (sc *ScheduleCommand) EveryHours(h uint)
- func (sc *ScheduleCommand) EveryMinute()
- func (sc *ScheduleCommand) EveryMinutes(m uint)
- func (sc *ScheduleCommand) EverySecond()
- func (sc *ScheduleCommand) EverySeconds(s uint)
- func (sc *ScheduleCommand) Hourly()
- func (sc *ScheduleCommand) Monthly()
- func (sc *ScheduleCommand) When() schedule.When
- func (sc *ScheduleCommand) Yearly()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScheduleCommandList ¶
func ScheduleCommandList() *[]*ScheduleCommand
Types ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func NewJob ¶
func NewJob(scmd *ScheduleCommand) *Job
type Model ¶
type Model struct { }
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
type ScheduleCommand ¶
type ScheduleCommand struct {
// contains filtered or unexported fields
}
func (*ScheduleCommand) Daily ¶
func (sc *ScheduleCommand) Daily()
func (*ScheduleCommand) EveryDays ¶
func (sc *ScheduleCommand) EveryDays(d uint)
func (*ScheduleCommand) EveryHours ¶
func (sc *ScheduleCommand) EveryHours(h uint)
func (*ScheduleCommand) EveryMinute ¶
func (sc *ScheduleCommand) EveryMinute()
func (*ScheduleCommand) EveryMinutes ¶
func (sc *ScheduleCommand) EveryMinutes(m uint)
func (*ScheduleCommand) EverySecond ¶
func (sc *ScheduleCommand) EverySecond()
func (*ScheduleCommand) EverySeconds ¶
func (sc *ScheduleCommand) EverySeconds(s uint)
func (*ScheduleCommand) Hourly ¶
func (sc *ScheduleCommand) Hourly()
func (*ScheduleCommand) Monthly ¶
func (sc *ScheduleCommand) Monthly()
func (*ScheduleCommand) When ¶
func (sc *ScheduleCommand) When() schedule.When
func (*ScheduleCommand) Yearly ¶
func (sc *ScheduleCommand) Yearly()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.