Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions acceptance/bundle/variables/host/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Error: failed during request visitor: parse "https://${var.host}": invalid chara
"host": "${var.host}"
}
}

Exit code: 1

>>> errcode [CLI] bundle validate
Expand Down
1 change: 1 addition & 0 deletions cmd/bundle/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ task or a Python wheel task, the second example applies.
if err != nil {
return err
}
_, _ = cmd.OutOrStdout().Write([]byte{'\n'})
default:
return fmt.Errorf("unknown output type %s", root.OutputType(cmd))
}
Expand Down
1 change: 1 addition & 0 deletions cmd/bundle/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func newSummaryCommand() *cobra.Command {
return err
}
_, _ = cmd.OutOrStdout().Write(buf)
_, _ = cmd.OutOrStdout().Write([]byte{'\n'})
default:
return fmt.Errorf("unknown output type %s", root.OutputType(cmd))
}
Expand Down
4 changes: 3 additions & 1 deletion cmd/bundle/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ func renderJsonOutput(cmd *cobra.Command, b *bundle.Bundle) error {
if err != nil {
return err
}
_, _ = cmd.OutOrStdout().Write(buf)
out := cmd.OutOrStdout()
_, _ = out.Write(buf)
_, _ = out.Write([]byte{'\n'})
return nil
}

Expand Down