-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Use Nash for cli.js #240
Comments
I vote for this. 👍 |
👍 |
I'm usually against using tools like this but https://github.com/mcollina/commist is pretty neat and doesn't do too much like nash. |
@kevva What feature of nash do you think are too much or useless for |
Well, the only thing we need is |
Well actually, how I see it:
So, I guess the fluff we wouldn't need is the after hook, the deprecation notices and the catch all invalid command. I checked commist last week, but the lack of default cli handler is an issue for |
I was thinking we could use https://github.com/sindresorhus/meow for options parsing etc and commist for registring the commands. But do whatever you see fits :). I'm not totally against nash either. I just think it's pretty big. |
👎 I'd prefer smaller stuff too. Frameworks like commander and nash always end up being limiting in some way. |
I'd be interested in hearing what can be taken out of nash to make it more flexible. Would moving before, after, deprecate, etc. into separate modules that can be used with nash help this? |
I should personally say I prefer smaller stuff as well. 👎 |
Where did we end up with this? |
Oh, I abandoned the project for now. There was some backward compatibility issues and it was hard to handle it in the current state of Nash. Anyone's free to try it out, but I'll close this issue as this is not on anyone in the core team roadmap anymore. |
I kind of like their API https://github.com/scottcorgan/nash
And it'll allow us to program the cli in a more declarative way instead of having these nested if/else chains.
The text was updated successfully, but these errors were encountered: