WithArgs returns a copy of the command with new arguments
(args ...string)
| 44 | |
| 45 | // WithArgs returns a copy of the command with new arguments |
| 46 | func (c Cmd) WithArgs(args ...string) Cmd { |
| 47 | c.args = append(c.args, args...) |
| 48 | return c |
| 49 | } |
| 50 | |
| 51 | // WithoutArg removes an existing argument |
| 52 | func (c Cmd) WithoutArg(arg, val string) Cmd { |
no outgoing calls