aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 2f91db0..55e7970 100644
--- a/src/command.c
+++ b/src/command.c
@@ -99,6 +99,48 @@ struct l2_command_node l2_cmd_root = {
{ 0 }
}
},
+ {
+ .type = CMD_NODE_TYPE_LITERAL,
+ .name = "version",
+
+ .children = (struct l2_command_node []) {
+ {
+ .type = CMD_NODE_TYPE_LITERAL,
+ .name = "list",
+
+ .children = (struct l2_command_node []) {
+ {
+ .type = CMD_NODE_TYPE_LITERAL,
+ .name = "local",
+
+ .cmd_proc = &cmd_version_list_local
+ },
+ {
+ .type = CMD_NODE_TYPE_LITERAL,
+ .name = "remote",
+
+ .cmd_proc = &cmd_version_list_remote
+ },
+ { 0 }
+ }
+ },
+ {
+ .type = CMD_NODE_TYPE_LITERAL,
+ .name = "install",
+
+ .children = (struct l2_command_node []) {
+ {
+ .type = CMD_NODE_TYPE_ARGUMENT,
+ .name = "remotever",
+
+ .cmd_proc = &cmd_version_install
+ },
+ { 0 }
+ }
+ },
+ { 0 }
+ }
+ },
{ 0 }
}
};