Expand description
Centralized stdout/stderr emitters for CLI output formatting. Single point of terminal I/O for the CLI (stdout JSON, stderr human).
All user-visible output must go through this module; direct println! in
other modules is forbidden.
Structs§
- Recall
Item - Individual item returned by the
recallquery. - Recall
Response - Remember
Response - JSON payload emitted by the
remembersubcommand.
Enums§
Functions§
- emit_
error - Emits a localised error message to stderr with the
Error:/Erro:prefix. - emit_
error_ i18n - Emits a bilingual error to stderr honouring
--langorSQLITE_GRAPHRAG_LANG. Usage:output::emit_error_i18n("invariant violated", "invariante violado"). - emit_
json - emit_
json_ compact - emit_
progress - emit_
progress_ i18n - Emits a bilingual progress message honouring
--langorSQLITE_GRAPHRAG_LANG. Usage:output::emit_progress_i18n("Computing embedding...", "Calculando embedding..."). - emit_
text