SetContext sets context for the command. This context will be overwritten by Command.ExecuteContext or Command.ExecuteContextC.
(ctx context.Context)
| 273 | // SetContext sets context for the command. This context will be overwritten by |
| 274 | // Command.ExecuteContext or Command.ExecuteContextC. |
| 275 | func (c *Command) SetContext(ctx context.Context) { |
| 276 | c.ctx = ctx |
| 277 | } |
| 278 | |
| 279 | // SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden |
| 280 | // particularly useful when testing. |
no outgoing calls