Skip to main content

printable_after

Function printable_after 

Source
pub fn printable_after(outcome: ChildOutcome, text: &str) -> &str
Expand description

What: The part of the announcement to print for a finished child. The result borrows from text. Why: Git that failed or was killed did not answer, so the caller sees Git’s status and Git’s own diagnostics unchanged.

In TS you’d write (pseudocode):

function printableAfter(outcome: ChildOutcome, text: string): string { return outcome.exited === 0 ? text : ''; }