Skip to content

lib/output: add WriteBytes convenience function

Warren Gifford requested to merge sg-output-write-bytes into main

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

Merge request reports

Loading