grim/convey

eff7fbacd5ee
Parents 2cf80db56edb
Children 2372326b8e83
remove the helper function for running plans
--- a/runner/cmd.go Thu Dec 23 11:11:39 2021 -0600
+++ b/runner/cmd.go Thu Dec 23 15:17:04 2021 -0600
@@ -45,10 +45,6 @@
Plans []string `kong:"arg,help='The names of the plans to run',default='default'"`
}
-func (c *RunnerCmd) runPlan(name string, plan runtime.Plan, rt *runtime.Runtime) error {
- return plan.Execute(name, rt)
-}
-
func (c *RunnerCmd) runPlans(ctx context.Context, rt *runtime.Runtime) error {
errChan := make(chan error, 1)
@@ -58,7 +54,7 @@
for _, name := range c.Plans {
plan := rt.Plans[name]
- if err := c.runPlan(name, plan, rt); err != nil {
+ if err := plan.Execute(name, rt); err != nil {
errChan <- err
return
}