Skip to main content

get_text_stdout

Function get_text_stdout 

Source
pub fn get_text_stdout() -> Stdout
Expand description

Get a text stdout writer.

Returns a writer suitable for text output. On most platforms, this is simply stdout.

ยงExample

use click::utils::get_text_stdout;
use std::io::Write;

let mut stdout = get_text_stdout();
writeln!(stdout, "Hello, World!").unwrap();