multistep is a Go library for building up complex actions using discrete steps.
by mitchellhGo
Last 12 weeks · 0 commits
2 of 6 standards met
In Packer, we wrap steps depending on the value of . This works fine, but when we print the step names, the steps appear as or as . This PR adds an interface that steps can implement to get their inner step name into the debug output properly. Will fix mitchellh/packer#4670 this is the companion PR to mitchellh/packer#4672
Repository: mitchellh/multistep. Description: multistep is a Go library for building up complex actions using discrete steps. Stars: 153, Forks: 19. Primary language: Go. Languages: Go (100%). License: MIT. Open PRs: 3, open issues: 1. Last activity: 8y ago. Community health: 42%. Top contributors: mitchellh, pearkes, titanous, mwhooker, ryancox.
Resolves mitchellh/packer#4029 seeing nuances DRY up use PauseFn where possible during testing
This changes the package's public API, and also now has a dependency on net/context, so it may not be suitable for merging, but I figured I'd throw it out there just in case. This allows steps more immediate access to the cancellation state of the Runner, and has the added benefit of allowing a context to be strung through all the steps. I wanted to add the concept of nested collections of steps, and giving nested runners access to the cancellation channel seemed like a prerequisite for that. Thoughts?