Sha256: af58a9690209850a9a2d8dd2d5cd944d888db8abd6a1bc732d8de0bf75f774af

Contents?: true

Size: 541 Bytes

Versions: 36

Compression:

Stored size: 541 Bytes

Contents

module XcodeInstall
  class Command
    class List < Command
      self.command = 'list'
      self.summary = 'List Xcodes available for download.'

      def self.options
        [['--all', 'Show all available versions.']].concat(super)
      end

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

      def run
        installer = XcodeInstall::Installer.new

        if @all
          puts installer.list
        else
          puts installer.list_current
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
xcode-install-2.2.1 lib/xcode/install/list.rb
xcode-install-2.2.0 lib/xcode/install/list.rb
xcode-install-2.1.1 lib/xcode/install/list.rb
xcode-install-2.1.0 lib/xcode/install/list.rb
xcode-install-2.0.9 lib/xcode/install/list.rb
xcode-install-2.0.8 lib/xcode/install/list.rb
xcode-install-2.0.7 lib/xcode/install/list.rb
xcode-install-2.0.6 lib/xcode/install/list.rb
xcode-install-2.0.5 lib/xcode/install/list.rb
xcode-install-2.0.4 lib/xcode/install/list.rb
xcode-install-2.0.3 lib/xcode/install/list.rb
xcode-install-2.0.2 lib/xcode/install/list.rb
xcode-install-2.0.1 lib/xcode/install/list.rb
xcode-install-2.0.0 lib/xcode/install/list.rb
xcode-install-1.4.0 lib/xcode/install/list.rb
xcode-install-1.3.0 lib/xcode/install/list.rb
xcode-install-1.2.6 lib/xcode/install/list.rb
xcode-install-1.2.5 lib/xcode/install/list.rb
xcode-install-1.2.4 lib/xcode/install/list.rb
xcode-install-1.2.3 lib/xcode/install/list.rb