summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/cli_commands.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
commitdcacc00e3750300617ba6e16eb346713f91a783a (patch)
tree38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/src/cli_commands.h
parent58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff)
downloadcrep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz
Remove testing data
Diffstat (limited to 'examples/redis-unstable/src/cli_commands.h')
-rw-r--r--examples/redis-unstable/src/cli_commands.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/examples/redis-unstable/src/cli_commands.h b/examples/redis-unstable/src/cli_commands.h
deleted file mode 100644
index eb5a476..0000000
--- a/examples/redis-unstable/src/cli_commands.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/* This file is used by redis-cli in place of server.h when including commands.c
- * It contains alternative structs which omit the parts of the commands table
- * that are not suitable for redis-cli, e.g. the command proc. */
-
-#ifndef __REDIS_CLI_COMMANDS_H
-#define __REDIS_CLI_COMMANDS_H
-
-#include <stddef.h>
-#include "commands.h"
-
-/* Syntax specifications for a command argument. */
-typedef struct cliCommandArg {
- char *name;
- redisCommandArgType type;
- char *token;
- char *since;
- int flags;
- int numsubargs;
- struct cliCommandArg *subargs;
- const char *display_text;
-
- /*
- * For use at runtime.
- * Fields used to keep track of input word matches for command-line hinting.
- */
- int matched; /* How many input words have been matched by this argument? */
- int matched_token; /* Has the token been matched? */
- int matched_name; /* Has the name been matched? */
- int matched_all; /* Has the whole argument been consumed (no hint needed)? */
-} cliCommandArg;
-
-/* Command documentation info used for help output */
-struct commandDocs {
- char *name;
- char *summary;
- char *group;
- char *since;
- int numargs;
- cliCommandArg *args; /* An array of the command arguments. */
- struct commandDocs *subcommands;
- char *params; /* A string describing the syntax of the command arguments. */
-};
-
-extern struct commandDocs redisCommandTable[];
-
-#endif