Runner defines a command type.
| 90 | |
| 91 | // Runner defines a command type. |
| 92 | type Runner interface { |
| 93 | // Init is called with the original configuration before any task is run. |
| 94 | // As a result, the configuration may be incomplete, but allows some |
| 95 | // validation before tasks are kicked off. |
| 96 | // Init(v cue.Value) |
| 97 | |
| 98 | // Runner runs given the current value and returns a new value which is to |
| 99 | // be unified with the original result. |
| 100 | Run(meta *Meta) (results interface{}, err error) |
| 101 | } |
| 102 | |
| 103 | // RegisterRunner registers a task for cue commands. |
| 104 | func RegisterRunner(key string, f RunnerFunc) { |
no outgoing calls
no test coverage detected