shelljs / shx

Portable Shell Commands for Node
MIT License
1.72k stars 44 forks source link

feat: pass stdin along to ShellJS commands #89

Closed nfischer closed 7 years ago

nfischer commented 7 years ago

Read all of stdin and pass it to the underlying ShellJS command. This is also adds support for mocking stdin during tests, and refactors the mock utilities.

Fixes #80

If @levithomason doesn't have time to review, I can just merge this in a day or two (assuming everything passes)

codecov-io commented 7 years ago

Current coverage is 89.28% (diff: 100%)

Merging #89 into master will not change coverage

@@             master        #89   diff @@
==========================================
  Files             2          2          
  Lines            28         28          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits             25         25          
  Misses            3          3          
  Partials          0          0          

Powered by Codecov. Last update 48e6e60...200f5c0

nfischer commented 7 years ago

LGTM