ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
completions.h
Go to the documentation of this file.
1
51
52#pragma once
53
54#include <stdio.h>
55#include "../../common.h"
58
59#ifdef __cplusplus
60extern "C" {
61#endif
62
73
85
93
104
119
120#ifdef __cplusplus
121}
122#endif
⚙️ Common definitions, error codes, macros, and types shared throughout the application
completion_format_t completions_parse_shell_name(const char *shell_name)
Parse shell name string to completion format.
Definition completions.c:58
asciichat_error_t completions_generate_for_shell(completion_format_t format, FILE *output)
Generate shell completions and write to output stream.
Definition completions.c:24
completion_format_t
Supported shell completion formats.
Definition completions.h:66
@ COMPLETION_FORMAT_BASH
Definition completions.h:67
@ COMPLETION_FORMAT_UNKNOWN
Definition completions.h:71
@ COMPLETION_FORMAT_ZSH
Definition completions.h:69
@ COMPLETION_FORMAT_POWERSHELL
Definition completions.h:70
@ COMPLETION_FORMAT_FISH
Definition completions.h:68
const char * completions_get_shell_name(completion_format_t format)
Get human-readable shell name for format.
Definition completions.c:43
option_descriptor_t * completions_collect_all_modes_unique(size_t *count)
Collect options from all modes with deduplication.
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:44
⚙️ Unified options parsing system for ascii-chat with builder pattern and lock-free access
Central registry of all command-line options with mode applicability.
The complete registry entry for one command-line/configuration option.
Definition builder.h:249