Sha256: 0c9e1a2795435f0953851a198d1025406f793879294851426114b192b8db4f89

Contents?: true

Size: 851 Bytes

Versions: 8

Compression:

Stored size: 851 Bytes

Contents

require 'xpcomcore-rubygem/commands'

module XPCOMCore
  class CommandParser
    class GenerateCommand < CmdParse::Command
      class GenerationError < CmdParse::ParseError
        reason "An error occured trying to generate your application"
      end

      def initialize
        super('generate', true,  # Takes subcommands
                          true)  # Uses partial command matching
        self.short_desc = "Generates an XPCOMCore based XUL application or library packaged in a RubyGem."
        [ApplicationCommand, LibraryCommand].each { |k| add_command(k.new) }
      end

    end # GenerateCommand
  end   # CommandParser
end     # XPCOMCore

XPCOMCore::CommandParser.add_command(XPCOMCore::CommandParser::GenerateCommand)
require "xpcomcore-rubygem/commands/generate/application"
require "xpcomcore-rubygem/commands/generate/library"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xpcomcore-rubygem-0.6.4 lib/xpcomcore-rubygem/commands/generate.rb
xpcomcore-rubygem-0.6.3 lib/xpcomcore-rubygem/commands/generate.rb
xpcomcore-rubygem-0.6.2 lib/xpcomcore-rubygem/commands/generate.rb
xpcomcore-rubygem-0.6.0 lib/xpcomcore-rubygem/commands/generate.rb
xpcomcore-rubygem-0.5.3 lib/xpcomcore-rubygem/commands/generate.rb
xpcomcore-rubygem-0.5.2 lib/xpcomcore-rubygem/commands/generate.rb
xpcomcore-rubygem-0.5.1 lib/xpcomcore-rubygem/commands/generate.rb
xpcomcore-rubygem-0.5.0 lib/xpcomcore-rubygem/commands/generate.rb