ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
configuration.c
Go to the documentation of this file.
1
13#include <ascii-chat/options/registry/common.h>
14
15// ============================================================================
16// CONFIGURATION CATEGORY - Configuration file options
17// ============================================================================
18const registry_entry_t g_configuration_entries[] = {
19 // CONFIGURATION GROUP (binary-level)
20 {"config",
21 '\0',
22 OPTION_TYPE_STRING,
23 offsetof(options_t, config_file),
24 "",
25 0,
26 "Load configuration from toml FILE.",
27 "CONFIGURATION",
28 "FILE",
29 false,
30 NULL,
31 NULL,
32 NULL,
33 false,
34 false,
35 OPTION_MODE_BINARY,
36 {0},
37 NULL},
38 {"config-create",
39 '\0',
40 OPTION_TYPE_STRING,
41 0,
42 NULL,
43 0,
44 "Create default config file and write to FILE or stdout if not specified.",
45 "CONFIGURATION",
46 "[FILE]",
47 false,
48 NULL,
49 NULL,
50 NULL,
51 false,
52 false,
53 OPTION_MODE_BINARY,
54 {0},
55 NULL},
56 {"completions",
57 '\0',
58 OPTION_TYPE_STRING,
59 0,
60 NULL,
61 0,
62 "Generate shell completions (bash, fish, zsh, powershell) and output to stdout (or optional file path).",
63 "CONFIGURATION",
64 "SHELL [FILE]",
65 false,
66 NULL,
67 NULL,
68 NULL,
69 false,
70 false,
71 OPTION_MODE_BINARY,
72 {0},
73 NULL},
74 {"man-page-create",
75 '\0',
76 OPTION_TYPE_STRING,
77 0,
78 NULL,
79 0,
80 "Generate man page and write to FILE or stdout if not specified.",
81 "CONFIGURATION",
82 "[FILE]",
83 false,
84 NULL,
85 NULL,
86 NULL,
87 false,
88 false,
89 OPTION_MODE_BINARY,
90 {0},
91 NULL},
92
93 REGISTRY_TERMINATOR()};
const registry_entry_t g_configuration_entries[]