2024-02-15 19:42:22 +01:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-19 02:06:12 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2024-02-18 18:09:53 +01:00
|
|
|
#define SANDBOX_VERSION "0.1.2"
|
2024-02-17 15:15:40 +01:00
|
|
|
#define SANDBOX_USER "sandbox"
|
|
|
|
|
2024-02-19 02:06:12 +01:00
|
|
|
typedef struct {
|
|
|
|
const char* name;
|
|
|
|
const char* description;
|
|
|
|
const bool required;
|
|
|
|
} Argument;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
const char** aliases;
|
|
|
|
const Argument* arguments;
|
|
|
|
const char* description;
|
|
|
|
} Option;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int (*handler)(int argc, char* argv[]);
|
|
|
|
const char*** aliases;
|
|
|
|
const Option* options;
|
|
|
|
const Argument* arguments;
|
|
|
|
const char* description;
|
|
|
|
const char* details;
|
|
|
|
} Command;
|
|
|
|
|
2024-02-18 18:09:53 +01:00
|
|
|
int main(int argc, char** argv);
|