Skip to main content

write_output

Function write_output 

Source
pub fn write_output(content: &str, dest: &OutputDestination) -> Result<()>
Expand description

Writes text content to the specified destination.

  • Stdout: Writes to stdout with a newline
  • File: Writes to the file (overwriting)