/
githubmirror
/
fastlane
Обзор
Документация
Войти
/
githubmirror
/
fastlane
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
fastlane_core/spec/test_commander_program.rb
30 строк
743 B
Felix Krause
Add parentheses for all method calls (#11474)
09 янв 2018, 03:03
Не верифицирован
09 янв 2018, 03:03
1a79353
Код
Авторство
О чём код?
# Helper class that encapsulates the setup of a do-nothing Commander # program that captures the results of parsing command line options class TestCommanderProgram include Commander::Methods attr_accessor :args attr_accessor :options def self.run(config_items) new(config_items).tap(&:run!) end def initialize(config_items) # Sets up the global options in Commander whose behavior we want # to be testing. FastlaneCore::CommanderGenerator.new.generate(config_items) program :version, '1.0' program :description, 'Testing' command :test do |c| c.action do |args, options| @args = args.dup @options = options.__hash__.dup end end default_command(:test) end end