-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the CLI to support providing an SVG on `stdin` [1]. The CLI will only do this when provided with the `--stdin` flag, I choose this design as it was the only reliable way of switching between files and stdin I could find. Despite the awkward diff, the CLI flow for files (i.e. if `--stdin` is not used) is unchanged. The stdin flow is based on [2] and just calls the JS API's `lintSource` function on the entire input. -- 1. https://nodejs.org/api/process.html#processstdin 2. https://nodejs.org/api/stream.html#readablereadsize
- Loading branch information
1 parent
fb87cb7
commit 965f9b7
Showing
3 changed files
with
93 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters