shelljs / shx

Portable Shell Commands for Node
MIT License
1.73k stars 45 forks source link

Generic NUL output redirect #61

Closed kirly-af closed 8 years ago

kirly-af commented 8 years ago

It would be really convenient to have a kind of generic way to redirect output to:

I am trying to think about a syntax that would not be too heavy. Maybe an option like --null. What are your thoughts ?

ariporad commented 8 years ago

Hmm... This is interesting. @nfisher: thoughts?

Thanks! Ari On Fri, Jun 3, 2016 at 7:47 AM, Alexandre notifications@github.com wrote: It would be really convenient to have a kind of generic way to redirect output to:

I am trying to think about a syntax that would not be too heavy. Maybe an option like --null . What are your thoughts ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [https://github.com/shelljs/shx/issues/61] , or mute the thread [https://github.com/notifications/unsubscribe/ABu7pG4TrabTKkN7qo7fhdjxPL_2okzqks5qID5xgaJpZM4ItmqM] .

nfischer commented 8 years ago

Use config.silent please.

I was working on a syntax for specifying options on a command-by-command basis

nfischer commented 8 years ago

Oh, whoops. Just realized this was shx, not shelljs. In that case, we'd probably need to implement this as --silent on the shx command itself, perhaps looking like shx --silent rm foo bar.

We should implement this to allow arbitrary config attributes to become shx options, such as config.verbose and config.globOptions.

levithomason commented 8 years ago

We should implement this to allow arbitrary config attributes to become shx options, such as config.verbose and config.globOptions.

👍