I'm going to try to start refactoring the step.Step library so we can use it to generate
replay tests. That will require contextual information, so I have made the decision to
pass context.Context now.
Right now that means:
Changing step.F to take a func(context.Context) (string, error)
Changing step.Cmd to take name string, ...args instead of an exec.Command.
I'm going to try to start refactoring the step.Step library so we can use it to generate replay tests. That will require contextual information, so I have made the decision to pass context.Context now.
Right now that means:
step.F
to take afunc(context.Context) (string, error)
step.Cmd
to takename string, ...args
instead of anexec.Command
.This change will have no user facing behavior.