Sha256: 692a229cf9fa98e7da5b6e95b1dd525c23e09fdaf6209b0077344027dff1ec6d

Contents?: true

Size: 1.47 KB

Versions: 345

Compression:

Stored size: 1.47 KB

Contents

require 'highline'

HighLine.track_eof = false

require 'fastlane/version'
require_relative 'playground'
require_relative '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')
      global_option('--verbose') { FastlaneCore::Globals.verbose = true }

      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

345 entries across 345 versions & 2 rubygems

Version Path
fastlane-2.131.0.beta.20190910200104 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190909200058 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190908200041 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190907200030 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190906200026 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190905200113 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190904200040 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190903200013 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190902200022 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190901200035 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190831200041 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.131.0.beta.20190830200038 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.130.0 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.130.0.beta.20190829200051 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.130.0.beta.20190828200015 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.130.0.beta.20190827200051 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.130.0.beta.20190826200016 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.130.0.beta.20190825200030 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.130.0.beta.20190824200021 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.130.0.beta.20190823200017 spaceship/lib/spaceship/commands_generator.rb