pub fn write_completion( writer: impl Write, output: &CompletionOutput, ) -> Result<()>
Write a previously rendered completion output to a writer.
Returns an error if writing fails.