Skip to main content

Module output

Module output 

Source
Expand description

Output routing.

Human-readable progress goes through say! / say_inline!: stdout normally, stderr in --json mode, so stdout carries nothing but the JSON document.

Functionsยง

emit
Print one JSON document on stdout.
error_json
Error document; exit_code mirrors the process status (1 error, 130 cancelled).
history_json
-s --json: the branch history, newest first (numbers match --commit/--select).
json_mode
outcome_json
Result of a rewrite.
set_json_mode
simulation_json
Preview of a plan (--simulate, or the summary before a confirmation).