lib/output: add WriteBytes convenience function
Created by: bobheadxi
Adds a WriteBytes
convenience function, which also nicely fits in with the run
library's StreamLines
, so you can get:
cmd.Run(ctx, `brew install git`).StreamLines(std.Out.WriteBytes)
Normally we could write to an io.Writer
, but output.Write
does not implement it
Test plan
n/a