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

Feature request: Input via stdin #97

Closed
mmaday opened this issue Nov 12, 2015 · 2 comments
Closed

Feature request: Input via stdin #97

mmaday opened this issue Nov 12, 2015 · 2 comments

Comments

@mmaday
Copy link

mmaday commented Nov 12, 2015

Great utility. It'd be super handy to allow input to htmlhint via an input stream (STDIN). jshint has implemented this by using - as the filespec (jshint/jshint#687).

This would allow buffers to be piped in. I could use this in the SublimeLinter plugin I wrote for htmlhint (https://github.com/mmaday/SublimeLinter-contrib-htmlhint). As the user edits their HTML files, the editor contents would get piped to htmlhint and linting errors would show up in realtime without the user having to save the file first.

Thanks!

@yaniswang
Copy link
Contributor

Ok, next version will add this feature.

@yaniswang
Copy link
Contributor

Done, please try:

cat test.html | htmlhint stdin

mmaday added a commit to htmlhint/SublimeLinter-contrib-htmlhint that referenced this issue Sep 5, 2016
…mlhint/HTMLHint#97).  Updates version requirement of htmlhint to 0.9.13.  Resolves #5.
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

No branches or pull requests

2 participants