ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
configuration.c File Reference

Configuration file options. More...

Go to the source code of this file.

Variables

const registry_entry_t g_configuration_entries []

Detailed Description

Configuration file options.

Options for loading configuration from TOML files and creating default configuration templates.

Author
Zachary Fogg me@zf.nosp@m.o.gg
Date
January 2026

Definition in file configuration.c.

Variable Documentation

◆ g_configuration_entries

const registry_entry_t g_configuration_entries[]

Definition at line 20 of file configuration.c.

20 {{"config",
21 '\0',
23 offsetof(options_t, config_file),
24 "",
26 "Load configuration from toml FILE.",
27 "CONFIGURATION",
28 "FILE",
29 false,
30 NULL,
31 NULL,
32 NULL,
33 false,
34 false,
36 {.input_type = OPTION_INPUT_FILEPATH},
37 NULL},
38 {"config-create",
39 '\0',
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,
54 {.input_type = OPTION_INPUT_FILEPATH},
55 NULL},
56 {"completions",
57 '\0',
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,
72 {.enum_values = g_completion_shell_values, .input_type = OPTION_INPUT_ENUM},
73 NULL},
74 {"man-page-create",
75 '\0',
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,
90 {.input_type = OPTION_INPUT_FILEPATH},
91 NULL},
92
@ OPTION_INPUT_FILEPATH
File path completion.
Definition builder.h:190
@ OPTION_INPUT_ENUM
Choose from fixed set of enum values.
Definition builder.h:187
@ OPTION_TYPE_STRING
String value (–name foo).
Definition builder.h:173
struct options_state options_t
Immutable, RCU-published snapshot of the application's runtime configuration.
#define OPTIONS_BUFF_SIZE
Buffer size for option string values.
Definition options.h:305
@ OPTION_MODE_BINARY
Binary-level options (parsed before mode detection).
Definition options.h:942
#define REGISTRY_TERMINATOR()
Initialize a terminator entry (sentinel value for array end) Uses designated initializers to properly...
const char * g_completion_shell_values[]
Definition metadata.c:153