Sha256: fb6bb0ea3597961693e3e710e664bf813e67832ef2541d3ed2b6d9f4e3b31fe4

Contents?: true

Size: 1.4 KB

Versions: 181

Compression:

Stored size: 1.4 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')

      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

181 entries across 181 versions & 1 rubygems

Version Path
fastlane-2.96.0 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180521050117 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180520050019 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180519050103 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180518050116 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180517050058 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180516050022 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180515050025 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180514050029 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180513050015 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180512050121 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180511050050 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.96.0.beta.20180510050112 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.95.0 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.95.0.beta.20180509050014 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.95.0.beta.20180508050130 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.95.0.beta.20180507050125 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.95.0.beta.20180506050030 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.95.0.beta.20180505050019 spaceship/lib/spaceship/commands_generator.rb
fastlane-2.95.0.beta.20180504050050 spaceship/lib/spaceship/commands_generator.rb