class Spaceship::CommandsGenerator
Public Class Methods
start()
click to toggle source
# File spaceship/lib/spaceship/commands_generator.rb, line 13 def self.start self.new.run end
Public Instance Methods
run()
click to toggle source
# File spaceship/lib/spaceship/commands_generator.rb, line 17 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