summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-12-06 22:20:43 (EST)
committer P. J. McDermott <pj@pehjota.net>2015-12-06 22:20:43 (EST)
commitf3657bc5dbf6befb20bd54d19940251846fe147e (patch)
tree1669a400fe170351ea03c5e74fa9c0f927324945
parent42f5c3de2feaf43447ab439e8ca53bab03327b42 (diff)
register_cmd(): New function
-rw-r--r--lib/cmd.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/cmd.sh b/lib/cmd.sh
index 208e2fa..866896e 100644
--- a/lib/cmd.sh
+++ b/lib/cmd.sh
@@ -25,10 +25,20 @@ use output
use locale
CMDS='@cmds@'
+cmds=' '
running_cmd=
running_cmd_clean=
+register_cmd()
+{
+ local cmd="${1}"
+ shift 1
+
+ cmds="${cmds}${cmd} "
+ return 0
+}
+
load_cmds()
{
local cmd=