App-Dochazka-CLI
view release on metacpan or search on metacpan
lib/App/Dochazka/CLI/CommandMap.pm view on Meta::CPAN
activity_all
);
use App::Dochazka::CLI::Commands::Component qw(
component_path
generate_report
);
use App::Dochazka::CLI::Commands::Employee qw(
employee_ldap
employee_ldap_import
employee_list
employee_profile
employee_team
set_employee_self_sec_id
set_employee_other_sec_id
set_employee_self_fullname
set_employee_other_fullname
set_employee_self_password
set_employee_other_password
set_employee_supervisor
);
use App::Dochazka::CLI::Commands::History qw(
add_priv_history
add_schedule_history
dump_priv_history
dump_schedule_history
set_history_remark
);
use App::Dochazka::CLI::Commands::Interval qw(
interval_date
interval_date_date1
interval_datelist
interval_tsrange
interval_month
interval_num_num1
interval_promptdate
interval_new_date_time_date1_time1
interval_new_time_time1
interval_new_timerange
);
use App::Dochazka::CLI::Commands::Misc qw(
change_prompt_date
noop
);
use App::Dochazka::CLI::Commands::Priv qw(
show_priv_as_at
);
use App::Dochazka::CLI::Commands::Schedule qw(
add_memsched_entry
assign_memsched_scode
clear_memsched_entries
dump_memsched_entries
fetch_all_schedules
replicate_memsched_entry
schedule_all
schedule_new
schedulespec
schedulespec_remark
schedulespec_scode
show_schedule_as_at
);
use Data::Dumper;
use Exporter qw( import );
=head1 NAME
App::Dochazka::CLI::CommandMap - Command map
=head1 PACKAGE VARIABLES
=cut
# bring in the _method... functions
require App::Dochazka::CLI::Commands::RestTest::Activity;
require App::Dochazka::CLI::Commands::RestTest::Employee;
require App::Dochazka::CLI::Commands::RestTest::Interval;
require App::Dochazka::CLI::Commands::RestTest::Lock;
require App::Dochazka::CLI::Commands::RestTest::Priv;
require App::Dochazka::CLI::Commands::RestTest::Schedule;
require App::Dochazka::CLI::Commands::RestTest::Top;
our $dispatch_map = {
# Top-level commands
"GET" => \&_method,
"PUT" => \&_method,
"POST" => \&_method,
"DELETE" => \&_method,
"GET BUGREPORT" => \&_method_bugreport,
"PUT BUGREPORT" => \&_method_bugreport,
"POST BUGREPORT" => \&_method_bugreport,
"DELETE BUGREPORT" => \&_method_bugreport,
"GET CONFIGINFO" => \&_method_configinfo,
"PUT CONFIGINFO" => \&_method_configinfo,
"POST CONFIGINFO" => \&_method_configinfo,
"DELETE CONFIGINFO" => \&_method_configinfo,
"GET COOKIEJAR" => \&_method_cookiejar,
"PUT COOKIEJAR" => \&_method_cookiejar,
"POST COOKIEJAR" => \&_method_cookiejar,
"DELETE COOKIEJAR" => \&_method_cookiejar,
"GET DBSTATUS" => \&_method_dbstatus,
"PUT DBSTATUS" => \&_method_dbstatus,
"POST DBSTATUS" => \&_method_dbstatus,
"DELETE DBSTATUS" => \&_method_dbstatus,
"GET DOCU" => \&_method_docu,
"PUT DOCU" => \&_method_docu,
"POST DOCU" => \&_method_docu,
"DELETE DOCU" => \&_method_docu,
"GET DOCU POD" => \&_method_docu_pod,
"PUT DOCU POD" => \&_method_docu_pod,
"POST DOCU POD" => \&_method_docu_pod,
"DELETE DOCU POD" => \&_method_docu_pod,
"GET DOCU POD _DOCU" => \&_method_docu_pod_docu,
"PUT DOCU POD _DOCU" => \&_method_docu_pod_docu,
"POST DOCU POD _DOCU" => \&_method_docu_pod_docu,
"DELETE DOCU POD _DOCU" => \&_method_docu_pod_docu,
"GET HOLIDAY _TSRANGE" => \&_method_holiday_tsrange,
"PUT HOLIDAY _TSRANGE" => \&_method_holiday_tsrange,
( run in 0.639 second using v1.01-cache-2.11-cpan-98e64b0badf )