Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@stellirin
Copy link
Contributor

What type of PR is this?

(REQUIRED)

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

(REQUIRED)

  1. Add a new default Reader to the App for easy testing STDIN.
  2. Adds tests for the above.

Which issue(s) this PR fixes:

(REQUIRED)

Closes: #1190

Release Notes

(REQUIRED)

Add a App.Reader that defaults to os.Stdin.

@stellirin stellirin requested a review from a team as a code owner October 2, 2020 10:45
@stellirin stellirin requested review from rliebz and saschagrunert and removed request for a team October 2, 2020 10:45
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TimothyStiles
Copy link

I've been searching hours for a nice solution for testing stdin like this. Is there anyway I can help get it merged?

@rliebz rliebz merged commit 30bb698 into urfave:master Oct 22, 2020
@TimothyStiles
Copy link

Thanks @rliebz for merging that and thanks @stellirin for writing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2 feature: Add a App.Reader that defaults to os.Stdin

4 participants