csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

CLI should recognize stdin for input

Open lkraav opened this issue 10 years ago • 4 comments

v3.0.4

Currently stdin is not handled

$ cat style.less | csscomb -c /etc/csscomb.json -
Path - was not found.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

lkraav avatar Feb 15 '15 04:02 lkraav

+1

bitspook avatar May 01 '15 18:05 bitspook

Should be fixed in dev

tonyganch avatar May 19 '15 15:05 tonyganch

$ csscomb --version
3.1.8
$ node-sass quarks-all/test/test.scss | csscomb                    
No input paths specified

  Usage: csscomb [options] <file ...>

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -v, --verbose        verbose mode
    -c, --config [path]  configuration file path
    -d, --detect         detect mode (would return detected options)
    -l, --lint           in case some fixes needed returns an error

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at Object.exports._errnoException (util.js:874:11)
    at exports._exceptionWithHostPort (util.js:897:20)
    at WriteWrap.afterWrite (net.js:763:14)
$ lessc quarks-all/test/test.less | csscomb
No input paths specified

  Usage: csscomb [options] <file ...>

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -v, --verbose        verbose mode
    -c, --config [path]  configuration file path
    -d, --detect         detect mode (would return detected options)
    -l, --lint           in case some fixes needed returns an error

StreetStrider avatar Jan 17 '16 14:01 StreetStrider

We need to add a way to specify the syntax of the input.

jdalton avatar May 06 '19 07:05 jdalton