From 57f67e1dc1b1c8ec7e251138ab1d355b7b9f3bd1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 22 Jul 2017 15:26:49 -0400 Subject: cmd/*: Use register_cmd() --- (limited to 'src') diff --git a/src/cmd/copy-suite.sh b/src/cmd/copy-suite.sh index d17a9d4..51fd969 100644 --- a/src/cmd/copy-suite.sh +++ b/src/cmd/copy-suite.sh @@ -45,3 +45,9 @@ cmd_copy_suite_main() return 0 } + +cmd_copy_suite_register() +{ + register_cmd 'copy-suite' +} +__init cmd_copy_suite_register diff --git a/src/cmd/help.sh b/src/cmd/help.sh index 8b4cd58..628b0dc 100644 --- a/src/cmd/help.sh +++ b/src/cmd/help.sh @@ -38,3 +38,9 @@ cmd_help_main() printf "$(get_msg 'cmd_help_summary_head')\n" print_cmd_summaries } + +cmd_help_register() +{ + register_cmd 'help' +} +__init cmd_help_register diff --git a/src/cmd/include.sh b/src/cmd/include.sh index aa8fd30..7f8fbac 100644 --- a/src/cmd/include.sh +++ b/src/cmd/include.sh @@ -31,3 +31,9 @@ cmd_include_main() return 0 } + +cmd_include_register() +{ + register_cmd 'include' +} +__init cmd_include_register diff --git a/src/cmd/process-incoming.sh b/src/cmd/process-incoming.sh index 6f07547..0634f34 100644 --- a/src/cmd/process-incoming.sh +++ b/src/cmd/process-incoming.sh @@ -43,3 +43,9 @@ cmd_process_incoming_main() return 0 } + +cmd_process_incoming_register() +{ + register_cmd 'process-incoming' +} +__init cmd_process_incoming_register diff --git a/src/cmd/remove-suite.sh b/src/cmd/remove-suite.sh index 394b7fd..6703d24 100644 --- a/src/cmd/remove-suite.sh +++ b/src/cmd/remove-suite.sh @@ -37,3 +37,9 @@ cmd_remove_suite_main() return 0 } + +cmd_remove_suite_register() +{ + register_cmd 'remove-suite' +} +__init cmd_remove_suite_register diff --git a/src/cmd/remove.sh b/src/cmd/remove.sh index 26660b6..388a4d3 100644 --- a/src/cmd/remove.sh +++ b/src/cmd/remove.sh @@ -38,3 +38,9 @@ cmd_remove_main() return 0 } + +cmd_remove_register() +{ + register_cmd 'remove' +} +__init cmd_remove_register diff --git a/src/cmd/version.sh b/src/cmd/version.sh index e89ccc8..b22205f 100644 --- a/src/cmd/version.sh +++ b/src/cmd/version.sh @@ -24,3 +24,9 @@ cmd_version_main() printf "$(get_msg 'cmd_version_copyright')\n" \ '2013' 'Patrick "P. J." McDermott' } + +cmd_version_register() +{ + register_cmd 'version' +} +__init cmd_version_register -- cgit v0.9.1