summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-22 15:26:49 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-22 15:26:49 (EDT)
commit57f67e1dc1b1c8ec7e251138ab1d355b7b9f3bd1 (patch)
tree4ae7ad7405a3d5c546419a51e56a88e57e0ebdb3 /src
parent719c1bcbdfda016f7b3bd10b9b35631739586fec (diff)
cmd/*: Use register_cmd()
Diffstat (limited to 'src')
-rw-r--r--src/cmd/copy-suite.sh6
-rw-r--r--src/cmd/help.sh6
-rw-r--r--src/cmd/include.sh6
-rw-r--r--src/cmd/process-incoming.sh6
-rw-r--r--src/cmd/remove-suite.sh6
-rw-r--r--src/cmd/remove.sh6
-rw-r--r--src/cmd/version.sh6
7 files changed, 42 insertions, 0 deletions
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