diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-16 20:28:38 +0300 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-17 23:34:24 +0300 |
commit | 1b4fdb9893af28606b7594ee656438c7ef21e9d8 (patch) | |
tree | 420a687514aedcc68c5a2dbe649123e3a52fdb02 /lib/mattermost | |
parent | 8c8bc07d32f1103bb7996b499ead6ad6eb5bd337 (diff) |
Rename from service, and move to lib/gitlab
Diffstat (limited to 'lib/mattermost')
-rw-r--r-- | lib/mattermost/presenter.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/mattermost/presenter.rb b/lib/mattermost/presenter.rb index e1502e3f9ba..3db55d6bd51 100644 --- a/lib/mattermost/presenter.rb +++ b/lib/mattermost/presenter.rb @@ -12,12 +12,11 @@ module Mattermost } end - # TODO figure out how I know which are available or not - def help_message(commands) + def help(messages) messages = ["Available commands:"] - commands.each do |sub_command, attrs| - messages << "\t#{COMMAND_PREFIX} #{attrs[:help_message]}" + messages.each do |messsage| + messages << "- #{message}" end { |