16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/cert/commands_generator.rb', line 16
def run
program :version, Cert::VERSION
program :description, 'CLI for \'cert\' - Create new iOS code signing certificates'
program :help, 'Author', 'Felix Krause <[email protected]>'
program :help, 'Website', 'https://fastlane.tools'
program :help, 'GitHub', 'https://github.com/fastlane/cert'
program :help_formatter, :compact
global_option('--verbose') { $verbose = true }
FastlaneCore::CommanderGenerator.new.generate(Cert::Options.available_options)
command :create do |c|
c.syntax = 'cert create'
c.description = 'Create new iOS code signing certificates'
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 = 'cert revoke_expired'
c.description = 'Revoke expired iOS code signing certificates'
c.action do |args, options|
Cert.config = FastlaneCore::Configuration.create(Cert::Options.available_options, options.__hash__)
Cert::Runner.new.revoke_expired_certs!
end
end
default_command :create
run!
end
|