From 5e141e336c3a2cb8921edcd7af6f14a29ff63942 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Wed, 27 Dec 2023 06:51:29 -0600 Subject: add cheap SHA1 implementation --- src/command.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'src/command.c') 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 } } }; -- cgit v1.2.3-70-g09d2