(timeout time.Duration, name string, args ...string)
| 38 | } |
| 39 | |
| 40 | func NewTimeoutCmd(timeout time.Duration, name string, args ...string) *Cmd { |
| 41 | return (&Cmd{ |
| 42 | name: name, |
| 43 | args: args, |
| 44 | }).WithTimeout(timeout) |
| 45 | } |
| 46 | |
| 47 | func (this *Cmd) WithTimeout(timeout time.Duration) *Cmd { |
| 48 | this.timeout = timeout |
nothing calls this directly
no test coverage detected