Skip to content

Commit

Permalink
Add command timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rugwirobaker committed Jan 18, 2023
1 parent 9079f10 commit 57c2176
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ type MachineProcess struct {
}

type MachineExecRequest struct {
Cmd []string `json:"cmd"`
Cmd string `json:"cmd"`
Timeout int `json:"timeout,omitempty"`
}

type MachineExecResponse struct {
Expand Down

0 comments on commit 57c2176

Please sign in to comment.