cert/lib/cert/commands_generator.rb in fastlane-2.16.0 vs cert/lib/cert/commands_generator.rb in fastlane-2.17.0

- old
+ new

@@ -20,24 +20,26 @@ program :help, 'GitHub', 'https://github.com/fastlane/cert' program :help_formatter, :compact global_option('--verbose') { FastlaneCore::Globals.verbose = true } - FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options) - command :create do |c| c.syntax = 'fastlane cert create' c.description = 'Create new iOS code signing certificates' + FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options, command: c) + c.action do |args, options| Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__) Cert::Runner.new.launch end end command :revoke_expired do |c| c.syntax = 'fastlane cert revoke_expired' c.description = 'Revoke expired iOS code signing certificates' + + FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options, command: c) c.action do |args, options| Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__) Cert::Runner.new.revoke_expired_certs! end