Skip to main content

Module output

Module output 

Source
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§

RecallItem
Individual item returned by the recall query.
RecallResponse
RememberResponse
JSON payload emitted by the remember subcommand.

Enums§

JsonOutputFormat
OutputFormat

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 --lang or SQLITE_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 --lang or SQLITE_GRAPHRAG_LANG. Usage: output::emit_progress_i18n("Computing embedding...", "Calculando embedding...").
emit_text