1 | Configuration = require './configuration'
|
2 | _ = require('underscore')._
|
3 |
|
4 | DisabledCommands = Configuration.Nconf.get('disabledCommands')
|
5 | Utils = require './utils'
|
6 |
|
7 | help = (fallback) ->
|
8 | for key, value of list
|
9 | Utils.fallback_print(fallback) {
|
10 | title: key,
|
11 | comments: value.description
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | list = {
|
20 | pulls: require('./pulls'),
|
21 | deploy: require('./deploy'),
|
22 | changelog: require('./changelog'),
|
23 | amazon: require('./amazon'),
|
24 | help: {
|
25 | name: "Help"
|
26 | description: "Display a list of available commands",
|
27 | action: help
|
28 | }
|
29 | }
|
30 |
|
31 | module.exports = _.omit(list, DisabledCommands)
|