aboutsummaryrefslogtreecommitdiff
path: root/src/cli/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/commands.h')
-rw-r--r--src/cli/commands.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cli/commands.h b/src/cli/commands.h
new file mode 100644
index 0000000..d55edb9
--- /dev/null
+++ b/src/cli/commands.h
@@ -0,0 +1,15 @@
+#ifndef COMMANDS_H
+#define COMMANDS_H
+
+#include <stddef.h>
+
+struct Command {
+ char* name;
+ int (*func)(int, char**);
+ char* description;
+};
+
+extern const struct Command commands[];
+extern const size_t commands_size;
+
+#endif \ No newline at end of file