Sha256: a3861de47d85fdca4e9b360a7168f9708c26bf4d624633fa0df0ae2d620c70aa

Contents?: true

Size: 1.38 KB

Versions: 441

Compression:

Stored size: 1.38 KB

Contents

HighLine.track_eof = false

require 'fastlane/version'
require 'spaceship/playground'
require 'spaceship/spaceauth_runner'

module Spaceship
  class CommandsGenerator
    include Commander::Methods

    def self.start
      self.new.run
    end

    def run
      program :name, 'spaceship'
      program :version, Fastlane::VERSION
      program :description, Spaceship::DESCRIPTION
      program :help, 'Author', 'Felix Krause <spaceship@krausefx.com>'
      program :help, 'Website', 'https://fastlane.tools'
      program :help, 'GitHub', 'https://github.com/fastlane/fastlane/tree/master/spaceship'
      program :help_formatter, :compact

      global_option('-u', '--user USERNAME', 'Specify the Apple ID you want to log in with')

      command :playground do |c|
        c.syntax = 'fastlane spaceship playground'
        c.description = 'Run an interactive shell that connects you to Apple web services'

        c.action do |args, options|
          Spaceship::Playground.new(username: options.user).run
        end
      end

      command :spaceauth do |c|
        c.syntax = 'fastlane spaceship spaceauth'
        c.description = 'Authentication helper for spaceship/fastlane to work with Apple 2-Step/2FA'

        c.action do |args, options|
          Spaceship::SpaceauthRunner.new(username: options.user).run
        end
      end

      default_command :playground

      run!
    end
  end
end

Version data entries

441 entries across 441 versions & 1 rubygems

Version Path
fastlane-2.74.0.beta.20180106010004 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.73.0 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.73.0.beta.20180105010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.73.0.beta.20180104010004 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.73.0.beta.20180103010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.72.0 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.72.0.beta.20180102010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.72.0.beta.20180101010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.72.0.beta.20171231010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.71.1 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.72.0.beta.20171230010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.72.0.beta.20171229010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.72.0.beta.20171228010004 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.71.0 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.71.0.beta.20171227010004 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.71.0.beta.20171226010004 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.71.0.beta.20171225010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.71.0.beta.20171224010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.71.0.beta.20171223010003 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.71.0.beta.20171222010003 spaceship/lib/spaceship/commands_generator.rb