-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
CLI #2
Comments
Ref: Twitter conversation - I'm the hairy, unshaven, musk smelling author of that tweet. I bring peanuts, malt drinks and an offer to help. So, where to cap'n? Is there an existing CLI? |
This issue is dependant on the completion of the following;
On top of that, a whole new CLI system needs to be added as this is entirely new functionality (1.0.0 only worked in the browser). I've added the initial infrastructure for the CLI and Here's the current usage design;
Hopefully, it's pretty self-explanatory. If not, let me know so I can maybe add some examples to the usage output. No-args should print the usage descriptor (not yet implemented). I may get this to a ready and working state quite soon, but I really would like to write a complete unit test suite (#3) before releasing 1.1.0 as there are currently no tests. I've already created the test infrastructure but I need to write the actual tests. I'm hoping to complete this over the weekend if I can get a break from building shelves. I'm not sure if there's much to help with right now as I've got quite a clear picture of what needs doing in my head. However, if you have a good idea too, please feel free to fork and submit a pull request. Thanks for you keen interest and light-hearted musings. Finally, I'll need to take some time to fill |
I tl'dr'd because I've got to finish some work, so I saw coffeescript..by Reason I mentioned that (tldr thing) is I honestly have not yet dug into On Fri, Dec 7, 2012 at 11:13 AM, Alasdair Mercer
|
I've updated the README so it's really just the unit testing holding everything up. I'm about half-way through the core tests and I'm hoping to reuse them for testing the CLI as much as possible, though I'm not entirely sure what's the best way to test CLI in node.js so I might look at how other projects have achieved this. |
I'll have a look (nodejs is fussy with cli's but python+bash are only limited by your imagination. And their limits) -----Original Message----- I've updated the README so it's really just the unit testing holding everything up. I'm about half-way through the core tests and I'm hoping to reuse them for testing the CLI as much as possible, though I'm not entirely sure what's the best way to test CLI in node.js so I might look at how other projects have achieved this. Reply to this email directly or view it on GitHub: |
Add a new command line interface which works using
stdin
andstdout
while supporting option flags.For example;
The text was updated successfully, but these errors were encountered: