Skip to main content

annotate

Function annotate 

Source
pub fn annotate(result: &mut Value, command: &str, policy: Option<&Policy>)
Expand description

Adds the notes to a bash result (output) or a job snapshot (text) of command: exit_note when the command ended with a non-error exit 1, sandbox_note when it failed and policy (the sandbox in use, if any) refused it. A result still running, stopped or without an exit code gets neither.