App::Dochazka::CLI::Commands::Schedule - Schedule commands
The functions in this module are called from the parser when it recognizes a command.
The routines in this section are called as command handlers.
SCHEDULE ALL SCHEDULE ALL DISABLED
SCHEDULE EMPLOYEE_SPEC SCHEDULE SCHEDULE _DATE EMPLOYEE_SPEC SCHEDULE _DATE
SCHEDULE _DOW _TIME _DOW1 _TIME1 SCHEDULE _DOW _TIME _HYPHEN _DOW1 _TIME1 SCHEDULE _DOW _TIMERANGE
SCHEDULE ALL _TIMERANGE
Apply timerange to all five days MON-FRI
SCHEDULE CLEAR
SCHEDULES FETCH ALL SCHEDULES FETCH ALL DISABLED
Get all schedules and dump them to the screen.
Dumps "memsched" (i.e. working schedule stored in memory) to the screen.
Note that App::Dochazka::CLI will happily let you build up a completely illegal and nonsensical schedule in memory, and submit it to the REST server. Data integrity controls for new schedule records are performed on server-side.
SCHEDULE DUMP SCHEDULE MEMORY
Submits the "memsched" (i.e. working schedule stored in memory) to the REST server via 'POST submit/new'.
SCHEDULE NEW
SCHEDULE SCODE _TERM
Assign an 'scode' value to the "memsched" (local memory buffer) schedule.
SCHEDULE_SPEC SCHEDULE_SPEC SHOW
SCHEDULE_SPEC REMARK _TERM
SCHEDULE_SPEC SCODE _TERM
Functions called by multiple command handlers
The canonical form is "SCHEDULE _DOW _TIME _DOW1 _TIME1" so if we get one of the other forms, we "canonicalize th"
Since clear_memsched_entries is a command handler, if we want to call it from within this module we have to use a special argument. Thus we can have our cake and eat it, too.
Since dump_memsched_entries is a command handler, if we want to call it from within this module we have to use a special argument. Thus we can have our cake and eat it, too.
To install App::Dochazka::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dochazka::CLI
CPAN shell
perl -MCPAN -e shell install App::Dochazka::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.