Permalink
Browse files

[minor] fixes #66, all aliases and commands are automatically picked up

  • Loading branch information...
nicoreed
nicoreed committed Jul 25, 2011
1 parent 35f9d93 commit d881e06b7d4d0de63d2bf0377d94d7079fa38f7e
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/jitsu/commands/help.js
@@ -115,7 +115,13 @@ help.show = function (name, action) {
// Setup exports for all relevant resources:
// `apps`, `snapshots`, `config`.
//
-['apps', 'databases', 'logs', 'snapshots', 'users', 'config', 'list', 'deploy', 'create'].forEach(function (resource) {
+
+var allCommands = []
+for (key in jitsu.commands.commands) {
+ allCommands.push(key);
+}
+
+allCommands.forEach(function (resource) {
help[resource] = function (action, callback) {
if (!callback) {
callback = action;

0 comments on commit d881e06

Please sign in to comment.