Skip to main content

Module print_mode

Module print_mode 

Source
Expand description

Print mode (non-interactive) for oxicode.

Used for:

  • oxicode -p "prompt" — text output (final response to stdout)
  • oxicode --mode json "prompt" — newline-delimited JSON event stream

Reads prompt from stdin or args, runs the agent, prints the result, and exits. No TUI rendering.

Structs§

PrintModeOptions
Options for running print mode.

Enums§

PrintMode
Output format for print mode.

Functions§

format_error
Format an error message consistently for stderr output.
read_stdin_prompt
Read a prompt from stdin (for piping).
run_print_mode
Run in print (single-shot) mode.