Sha256: 3036a8eecad13166f60b6b4dbd7f354dc87f2ec9e59ff1019a2c78c7877508a3

Contents?: true

Size: 797 Bytes

Versions: 1

Compression:

Stored size: 797 Bytes

Contents

require_relative 'options/options'
require_relative 'header/header'

module Pod
  class Command
    class JxedtCommand < Command
      self.summary = 'cocoapods-jxedt插件命令工具。'

      self.description = <<-DESC
        cocoapods-jxedt插件命令工具。
      DESC

      self.command = 'jxedt'
      self.abstract_command = true

      def self.options
        [
          ['--version', 'Show cocoapods-jxedt version'],
        ].concat(super)
      end

      def initialize(argv)
        @version = argv.flag?('version', false)
        super
      end

      def validate!
        if @version
          require 'cocoapods-jxedt/gem_version'
          puts "#{CocoapodsJxedt::VERSION}"
          return
        end
        super
      end

      def run
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cocoapods-jxedt-0.0.9 lib/cocoapods-jxedt/command/jxedt.rb