Permalink
Browse files

Merge pull request #67 from nicoreed/alias

[minor] fixes #66, all aliases and commands are automatically picked up
  • Loading branch information...
2 parents b21c55d + d881e06 commit ad3350aa12d6025b82dd6979edc5a014ce9c524e Nico Reed committed Jul 25, 2011
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 ad3350a

Please sign in to comment.