mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-06 22:39:46 +08:00
[command] Make RubyMotion main description a bit better.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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} "
|
||||
|
||||
Reference in New Issue
Block a user