sg ci logs: add -out=json and -out=simple, rename -out=stdout to -out=terminal
Created by: bobheadxi
Checking if https://github.com/sourcegraph/sourcegraph/pull/30915 's hiding of verbose logs is done through markup, and whether stripping markup might reveal content. Unfortunately not :(
However this seems potentially useful to have handy:
-
-out=simple
if you don't want colours -
-out=json
if you want to manipulate logs yourself or something, or debug the Loki logs adapter -
-out=terminal
is more specific than-out=stdout
Test plan
go run ./dev/sg ci logs -branch=devx/ci-improve-go-output # same as before
go run ./dev/sg ci logs -branch=devx/ci-improve-go-output -out=simple # no colors!
go run ./dev/sg ci logs -branch=devx/ci-improve-go-output -out=json # json format