choko
choko copied to clipboard
choko command
For example, Drupal has a command line tool named Drush, so it would be nice to have something like that in choko.
Examples:
choko install
choko start
choko install [extension name]
choko enable [extension name]
choko lib install chosen
Interesting. I think extensions can have their own package.json and bower.json, so choko should check for them and run npm/bower install after installing the extension automatically.
Here's how I see this happening:
choko install [extension name]
- download the extension from the repository (need to decide if we'll have our own repository or use npm for that and prefix extensions like choko-something).
- if extension has package.json and/or bower.json, run npm install on extension's folder then bower install.
choko update [extension name]
- check extensions that need to be updated and run them after confirmation
- run npm/bower update on updated extensions
choko enable [extension name]
- add extension to "extensions" property on settings.json
- restart the server or reload extensions if feasible
We depend on Commander and use that for implementing the choko command. We could investigate if Grunt could help us with the task running thing.
https://github.com/visionmedia/commander.js/ http://gruntjs.com/ https://github.com/recidive/choko/blob/master/bin/choko
I'm tagging this Milestone 0.1, maybe we could push the install/update thing to 0.2, but we can introduce choko commands in 0.1, with the start and other simple commands, just so we have a faster 0.1.