diff options
| author | 2023-12-27 06:51:29 -0600 | |
|---|---|---|
| committer | 2023-12-27 06:51:29 -0600 | |
| commit | 5e141e336c3a2cb8921edcd7af6f14a29ff63942 (patch) | |
| tree | 80df676cd02693746b505aecbec5c9ee529b5e7b /src/command.c | |
| parent | refactor instances (diff) | |
add cheap SHA1 implementation
Diffstat (limited to 'src/command.c')
| -rw-r--r-- | src/command.c | 42 |
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 } } }; |
