2024-02-15 19:42:22 +01:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-17 00:40:09 +01:00
|
|
|
#define VERSION "0.0.6"
|
2024-02-16 16:53:02 +01:00
|
|
|
|
2024-02-17 15:15:40 +01:00
|
|
|
#define SANDBOX_USER "sandbox"
|
|
|
|
|
2024-02-17 00:40:09 +01:00
|
|
|
typedef struct {
|
|
|
|
int (*handler)(int argc, char* argv[]);
|
|
|
|
const char* name;
|
|
|
|
const char* arguments;
|
|
|
|
const char* description;
|
|
|
|
const char* details;
|
|
|
|
} Command;
|
|
|
|
|
|
|
|
extern const Command COMMANDS[];
|
2024-02-16 16:53:02 +01:00
|
|
|
|
2024-02-16 02:22:24 +01:00
|
|
|
int main(int argc, char* argv[]);
|
2024-02-17 00:40:09 +01:00
|
|
|
|
|
|
|
int command_help(int argc, char* argv[]);
|
|
|
|
int command_version(int argc, char* argv[]);
|
|
|
|
|
2024-02-17 02:18:16 +01:00
|
|
|
int command_add_entry(int argc, char* argv[]);
|
2024-02-17 12:00:17 +01:00
|
|
|
int command_remove_entry(int argc, char* argv[]);
|
|
|
|
int command_list_entries(int argc, char* argv[]);
|
|
|
|
int command_clear_entries(int argc, char* argv[]);
|
|
|
|
int command_reset_entry(int argc, char* argv[]);
|
2024-02-17 18:10:07 +01:00
|
|
|
int command_update_entry(int argc, char* argv[]);
|