updated commands

This commit is contained in:
Brian Seymour 2018-10-08 15:53:03 -05:00
parent f6f6eaf502
commit 8dcfea4b90
17 changed files with 61 additions and 16 deletions

View file

@ -25,8 +25,9 @@ type problem struct {
}
type outbound struct {
Ran bool `json:"ran"`
Output string `json:"output"`
Generator string `json:"instance"`
Ran bool `json:"ran"`
Output string `json:"output"`
}
var instance int
@ -124,6 +125,7 @@ func launch(request inbound, res http.ResponseWriter) {
// prepare response
outbound := outbound{
Generator: fmt.Sprintf("docker-%d", instance),
Ran: err == nil,
Output: strings.TrimSpace(stdout.String()),
}