I want to send the html for go test -c
to stdout, so I can serve the resulting HTML from S3 static assets server.
Something like this:
arti_fact="s3://cm-html/cm-api/$commit_sha"
go test -coverprofile cover.out .
go tool cover -html=cover.out -o /dev/stdout | aws s3 cp - "$arti_fact"
is there a way to write to stdout without using -o /dev/stdout
?