mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 12:36:28 +02:00
updated commands
This commit is contained in:
parent
f6f6eaf502
commit
8dcfea4b90
17 changed files with 61 additions and 16 deletions
|
@ -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()),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue