mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Send results to S3
This commit is contained in:
parent
d0de6e75a6
commit
31255b3269
1 changed files with 11 additions and 1 deletions
|
|
@ -1492,7 +1492,17 @@ func (cmd *BspawnCommand) Run(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
output["results"] = res
|
||||
enc := json.NewEncoder(cmd.Stdout)
|
||||
|
||||
var writer io.Writer
|
||||
if cmd.Output == "aws" {
|
||||
writer = bench.NewS3Uploader(runUUID.String() + ".json")
|
||||
} else if cmd.Output == "stdout" {
|
||||
writer = cmd.Stdout
|
||||
} else {
|
||||
return fmt.Errorf("invalid bspawn output destination")
|
||||
}
|
||||
enc := json.NewEncoder(writer)
|
||||
|
||||
if cmd.Human {
|
||||
enc.SetIndent("", " ")
|
||||
output = bench.Prettify(output)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue