[cl-util] Fix typo when setting JSON output

We were not setting the `out` in the surrounding context, which meant we
were unconditionally outputting JSON to stdout even if a filepath was
specified.

Change-Id: I83af231961571a9fdad190140a62c97426d8921d
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/401082
Reviewed-by: Oliver Newman <olivernewman@google.com>
Commit-Queue: Anthony Fandrianto <atyfto@google.com>
1 file changed
tree: 522f266f4315c870843ada5957c4a8748e2060cb
  1. artifacts/
  2. buildbucket/
  3. cmd/
  4. devices/
  5. digest/
  6. gotidy/
  7. .gitignore
  8. AUTHORS
  9. go.mod
  10. go.sum
  11. LICENSE
  12. MAINTAINERS
  13. manifest
  14. PATENTS
  15. README.md
README.md

infra

This repo contains tools and config files necessary to run infrastructure related to builds, code review, version control, and continuous integrations.

In order to build the Go code, you must clone this repo into an appropriately named directory. This should do the trick:

REPO=fuchsia.googlesource.com/infra/infra
git clone https://${REPO} $(go env GOPATH)/src/${REPO}