Skip to content

Instantly share code, notes, and snippets.



Last active Mar 30, 2020
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