Skip to content

Instantly share code, notes, and snippets.

@jasonmccallister jasonmccallister/x.go

Last active Mar 30, 2020
Embed
What would you like to do?
func run(r command.Runner, p command.Preparer) error {
args, err := p.Prepare()
if err != nil {
return err
}
if p.HasInput() {
if err := r.SetInput(p.GetInput()); err != nil {
return err
}
}
return r.Run(args)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.