-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(cmd): allow reading input from stdin #86
Conversation
Codecov Report
@@ Coverage Diff @@
## master #86 +/- ##
==========================================
+ Coverage 81.67% 81.71% +0.03%
==========================================
Files 35 35
Lines 2096 2100 +4
==========================================
+ Hits 1712 1716 +4
Misses 258 258
Partials 126 126 |
thanks for this PR, @raghur! Would you mind adding a test that reads from |
oops, closed by error, sorry about that :/ |
There a test for that.. Check the diff. |
cmd/libasciidoc/root_cmd_test.go
Outdated
@@ -49,6 +54,36 @@ var _ = Describe("root cmd", func() { | |||
GinkgoT().Logf("command output: %v", buf.String()) | |||
require.Error(GinkgoT(), err) | |||
}) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File is not gofmt-ed with -s
ah, my bad, I missed it (facepalm) |
thanks @raghur |
Allow reading input for stdin -
libasciidoc -s -
-s, --source string the path to the asciidoc source to process. Use '-' for reading from stdin