Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing of CLI flags when using stdIn invocation. #89

Merged
merged 3 commits into from
Mar 11, 2020

Conversation

bhamail
Copy link
Contributor

@bhamail bhamail commented Mar 9, 2020

Support passing in CLI flags when invoking Nancy using the standard-input pipe approach.

e.g.

go list -m all |  ./nancy -quiet

Fixes Issue #88

cc @bhamail / @DarthHater

@bhamail bhamail requested a review from DarthHater March 9, 2020 20:49
@DarthHater
Copy link
Member

@zendern you mind taking a gander here? The config stuff was largely your ball court, I think you'll have the best eye!

@DarthHater DarthHater requested a review from zendern March 9, 2020 21:29
@zendern
Copy link
Contributor

zendern commented Mar 10, 2020

@bhamail @DarthHater Found it and my bad!! 😢
https://godoc.org/github.com/stretchr/testify/assert#ObjectsAreEqual

Apparently this does no assertion. Working on trying to switch it over to an method that does an assert but having issues with the logurus formatters since they are pointers.

@zendern
Copy link
Contributor

zendern commented Mar 10, 2020

Now you should see a failing test for the standard in and quiet scenario in 38f8e29. Had to fiddle all the formatters.

@bhamail
Copy link
Contributor Author

bhamail commented Mar 10, 2020

Excellent. I'm off and running again. Thanks @zendern !

@bhamail bhamail changed the title Test should be failing with this change. Not sure why it ain't Fix parsing of CLI flags when using stdIn invocation. Mar 10, 2020
Copy link
Contributor

@zendern zendern left a comment

Choose a reason for hiding this comment

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

Looks good and tested out good to me. 👍

@bhamail bhamail merged commit 197bf12 into master Mar 11, 2020
@bhamail bhamail deleted the WIP_arg_test_error branch March 11, 2020 14:14
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.

None yet

3 participants