Skip to main content

render

Function render 

Source
pub fn render(cli: &Cli, result: Result<View>) -> i32
Expand description

Render a View (or error) to stdout/stderr and return the exit code.

On success: emits the fez/v1 envelope under --json (with hints when present) or the human text otherwise, and returns 0. A pre_rendered view prints nothing and returns 0. On error: emits an error envelope (with structured crate::error::FezError::detail) under --json or a error: ... line otherwise, and returns the error’s exit code.

This attaches no error-specific hints; a capability that wants safe read-only follow-up hints on its error envelopes calls render_with_hints instead.