API refacto
Trackbone is renamed to Controller.
After the instanciation of the controller one can use
- RegisterTarget()
- RegisterTargets()
- RegisterTargetsFromDiff()
To add targets in the controller. Then when calling Run() the graph is generated, cycles are detected, stats are reset and all target are run.
A registered target can be retrieved with controller.Target() (before or after the run).
The NewTarget() function takes now a config struct (TargetRunOptions) which specifies some run options (interactive, retries, etc..) which influence the run of each target.
The instanciation of the controller (New()) takes also options (RunOptions) related to the management of target runs (runners, no skip).
cmd/inputs now works and use the new API.
Edited by Ghost User