appli 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/appli.rb +13 -7
- metadata +1 -1
data/lib/appli.rb
CHANGED
@@ -14,7 +14,7 @@ module Appli
|
|
14
14
|
class NotConfiguredError < StandardError; end
|
15
15
|
class MustBeInRepositoryError < StandardError; end
|
16
16
|
|
17
|
-
VERSION = "0.0.
|
17
|
+
VERSION = "0.0.9"
|
18
18
|
|
19
19
|
def run(command, args = [])
|
20
20
|
load_commands
|
@@ -129,19 +129,25 @@ Appli.usage "cb help [command]"
|
|
129
129
|
Appli.command "help", :global => true do |command|
|
130
130
|
if command.nil?
|
131
131
|
puts "The Appli Gem allows you to easily access your Appli account functions from the"
|
132
|
-
puts "command line. The functions below outline the options which are currently
|
132
|
+
puts "command line. The functions below outline the options which are currently"
|
133
|
+
puts "available."
|
133
134
|
puts
|
134
|
-
puts "
|
135
|
+
puts "\e[31mGlobal Commands\e[0m"
|
136
|
+
puts "-" * 80
|
135
137
|
puts
|
136
138
|
for key, command in Appli.global_commands.sort_by{|k,v| k}
|
137
|
-
puts "
|
139
|
+
puts " \e[36m#{key.rjust(15)}\e[0m #{command[:description].first}"
|
138
140
|
end
|
139
141
|
puts
|
140
|
-
puts "
|
141
|
-
puts "
|
142
|
+
puts "\e[31mApplication Specific Commands\e[0m"
|
143
|
+
puts "-" * 80
|
144
|
+
|
145
|
+
puts "The following commands can be executed by running 'appli [identifier] {command}'"
|
142
146
|
puts
|
143
147
|
for key, command in Appli.application_commands.sort_by{|k,v| k}
|
144
|
-
|
148
|
+
description = command[:description].first
|
149
|
+
description = description[0,55] + '...' if description.size > 55
|
150
|
+
puts " \e[36m#{key.rjust(15)}\e[0m #{description}"
|
145
151
|
end
|
146
152
|
|
147
153
|
puts
|