[botanist] Refactor command subprocess stdout/stderr logic

Provide two flags that point to files: -stdout and -stderr
If the former is set, redirect subprocess stdout there; else use
os.Stdout
If the latter is set, redirect subprocess stderr there; else use
os.Stderr

Change-Id: I70a532eba39cc47b619b58a892e7de0eba176ede
1 file changed
tree: db2b2283afcfb60b58666df177e3917fafd70221
  1. bloaty/
  2. botanist/
  3. build/
  4. cache/
  5. cmd/
  6. color/
  7. digest/
  8. elflib/
  9. fastboot/
  10. gndoc/
  11. isatty/
  12. logger/
  13. mdns/
  14. netboot/
  15. ninjalog/
  16. pdu/
  17. qemu/
  18. retry/
  19. runtests/
  20. secrets/
  21. serial/
  22. symbolize/
  23. tap/
  24. telnet/
  25. testrunner/
  26. testsharder/
  27. tftp/
  28. .gitignore
  29. go.mod
  30. go.sum
  31. LICENSE
  32. manifest
  33. PATENTS
  34. README.md
README.md

tools

This repo contains tools used in Fuchsia build and development.

Go packages from here are automatically built and uploaded to CIPD and Google Storage by bots using the tools recipe. To add a tool to the build:

  • Edit the bot config.
  • Find the builder_mixins section with name: "tools".
  • Edit the JSON in properties_j to add a string to the packages list:
"fuchsia.googlesource.com/tools/cmd/your-new-tool"