gym/lib/gym/commands_generator.rb in fastlane-2.17.1 vs gym/lib/gym/commands_generator.rb in fastlane-2.18.0.beta.20170216184940
- old
+ new
@@ -6,12 +6,10 @@
module Gym
class CommandsGenerator
include Commander::Methods
UI = FastlaneCore::UI
- FastlaneCore::CommanderGenerator.new.generate(Gym::Options.available_options)
-
def self.start
new.run
end
def convert_options(options)
@@ -32,9 +30,12 @@
global_option("--verbose") { FastlaneCore::Globals.verbose = true }
command :build do |c|
c.syntax = "fastlane gym"
c.description = "Just builds your app"
+
+ FastlaneCore::CommanderGenerator.new.generate(Gym::Options.available_options, command: c)
+
c.action do |_args, options|
config = FastlaneCore::Configuration.create(Gym::Options.available_options,
convert_options(options))
Gym::Manager.new.work(config)
end