[command] Make RubyMotion main description a bit better.

This commit is contained in:
Eloy Durán
2014-01-17 16:34:02 +01:00
parent 27574bb6c7
commit 3e935532d2
2 changed files with 7 additions and 10 deletions

View File

@@ -81,16 +81,14 @@ module Motion; module Project
require 'motion/project/command/changelog'
#require 'motion/project/command/create'
#require 'motion/project/command/device_console'
#require 'motion/project/command/ri'
require 'motion/project/command/ri'
require 'motion/project/command/support'
require 'motion/project/command/update'
self.abstract_command = true
self.command = 'motion'
self.description = 'RubyMotion is a revolutionary toolchain that lets ' \
'you quickly develop and test native iOS and OS X ' \
'applications for iPhone, iPad and Mac, all using ' \
'the awesome Ruby language you know and love.'
self.description = 'RubyMotion lets you develop native iOS and OS X ' \
'applications using the awesome Ruby language.'
#self.plugin_prefix = 'motion'
def self.options

View File

@@ -22,15 +22,14 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
module Motion; module Project
class RICommand < Command
self.name = 'ri'
self.help = 'Display API reference'
class RI < Command
self.summary = 'Display API reference.'
def run(args)
if args.size <= 0
die "Usage: motion ri <API-name>"
end
line = "/Library/RubyMotion/lib/yard/bin/yri --db /Library/RubyMotion/doc/yardoc "
if pager = ENV['PAGER']
line << "-p #{pager} "