github.com/replicatedhq/ship@v0.55.0/pkg/lifecycle/render/planner/execute.go (about)

     1  package planner
     2  
     3  import (
     4  	"context"
     5  )
     6  
     7  // Execute executes the plan
     8  func (p *CLIPlanner) Execute(ctx context.Context, plan Plan) error {
     9  	for _, step := range plan {
    10  		if err := step.Execute(ctx); err != nil {
    11  			return err
    12  		}
    13  	}
    14  	return nil
    15  }