appli 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/appli.rb +13 -7
  2. 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.8"
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 available."
132
+ puts "command line. The functions below outline the options which are currently"
133
+ puts "available."
133
134
  puts
134
- puts "Global Commands"
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 " #{key.ljust(15)} #{command[:description].first}"
139
+ puts " \e[36m#{key.rjust(15)}\e[0m #{command[:description].first}"
138
140
  end
139
141
  puts
140
- puts "Application Specific Commands"
141
- puts "The following commands can be executed by running 'appli [app identifier] {command}'"
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
- puts " #{key.ljust(15)} #{command[:description].first}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke