pub(crate) fn write_stdout(text: &str) -> Result<(), CliError>
Write and flush text to stdout without using print macros.