Skip to content
Snippets Groups Projects

lib/output: add WriteBytes convenience function

Merged 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

Merged by avatar (May 7, 2025 1:48am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading