(ctx context.Context, name string, arg ...string)
| 33 | } |
| 34 | |
| 35 | func CommandContext(ctx context.Context, name string, arg ...string) *Cmd { |
| 36 | return &Cmd{ |
| 37 | Context: ctx, |
| 38 | Path: name, |
| 39 | Args: append([]string{name}, arg...), |
| 40 | Env: make([]string, 0), |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func Command(name string, arg ...string) *Cmd { |
| 45 | return CommandContext(context.Background(), name, arg...) |
no outgoing calls