blob: a70af70a7fda4d0868fa63a07dad413ea45f8e87 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef APP_H
#define APP_H
typedef struct AppArgs AppArgs;
struct AppArgs {
b32 layer; // --layer: wlr layer shell overlay
char anchor[16]; // --anchor=center|top|bottom-right|...
char screenshot[512]; // --screenshot=<file.ppm>: capture a frame and quit
char open_view[32]; // --open=<view>: focus or open a view at startup
char open_file[512]; // positional .dit / .dit.txt file
char template_name[32];// --template=<arch|ecs|microservices|compiler|uml|stress>
char scan_path[512]; // --scan=<file_or_dir>: build diagram from C/C++ headers
char export_svg[512]; // --export-svg=<file.svg>: export SVG and quit
char export_any[512]; // --export=<file>: .svg .png .mmd .puml .dit.txt .dit by extension, then quit
char export_arg[32]; // --export-style=<class|flowchart|sequence> (mermaid), <scale> (png)
char *sets[32]; // --set="name=value"
u32 set_count;
};
internal String8 app_data_dir(Arena *arena);
internal void app_parse_args(AppArgs *args, int argc, char **argv);
#endif // APP_H
|