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

Add "true" and "false" commands #105

Closed
freitagbr opened this issue Dec 15, 2016 · 2 comments
Closed

Add "true" and "false" commands #105

freitagbr opened this issue Dec 15, 2016 · 2 comments
Assignees

Comments

@freitagbr
Copy link
Contributor

I think it would be helpful to add the unix true and false commands to shx. I don't know if these should be added to ShellJS itself, or simply parsed out and interpreted directly in shx, though I think I'd lean toward the latter.

@nfischer
Copy link
Member

Might be good to implement those two as one shelljs plugin.

What's the use case for shx? Is it just to do something like:

  "foo": "commandThatMayFail || shx true"

...

$ npm run foo

to avoid the ugly npm error message without using --silent?

@nfischer
Copy link
Member

@freitagbr any interest in creating shelljs-plugin-true-false? Do you think there's still a use-case for shx true and shx false?

@nfischer nfischer assigned nfischer and unassigned freitagbr Jul 4, 2018
nfischer added a commit that referenced this issue Jul 4, 2018
This implements true and false as a single plugin, and adds this plugin
by default to shx.

Fixes #105
Test: automated tests
Test: manual (works as expected)
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