Skip to main content

eval_form

Function eval_form 

Source
pub async fn eval_form(
    session: &mut Session,
    form: &str,
    mode: RenderMode,
) -> Result<Rendered, CommandError>
Expand description

Evaluate form via session, render the reply according to mode.

A server-side error is surfaced as CommandError::Command and the caller propagates it through the error path (→ stderr + exit(1)).