lib/sigh/commands_generator.rb in sigh-1.9.0 vs lib/sigh/commands_generator.rb in sigh-1.10.0
- old
+ new
@@ -11,11 +11,10 @@
self.new.run
ensure
FastlaneCore::UpdateChecker.show_update_status('sigh', Sigh::VERSION)
end
- # rubocop:disable Metrics/MethodLength
def run
program :version, Sigh::VERSION
program :description, 'CLI for \'sigh\' - Because you would rather spend your time building stuff than fighting provisioning'
program :help, 'Author', 'Felix Krause <sigh@krausefx.com>'
program :help, 'Website', 'https://fastlane.tools'
@@ -68,11 +67,13 @@
&multiple_values_option_proc(c, "provisioning_profile", &proc { |value| value.split('=', 2) })
c.option '-d', '--display_name STRING', String, 'Display name to use'
c.option '-e', '--entitlements PATH', String, 'The path to the entitlements file to use.'
c.option '--short_version STRING', String, 'Short version string to force binary and all nested binaries to use (CFBundleShortVersionString).'
c.option '--bundle_version STRING', String, 'Bundle version to force binary and all nested binaries to use (CFBundleIdentifier).'
+ c.option '--use_app_entitlements', 'Extract app bundle codesigning entitlements and combine with entitlements from new provisionin profile.'
c.option '-g', '--new_bundle_id STRING', String, 'New application bundle ID'
+ c.option '--keychain_path STRING', String, 'Path to the keychain that /usr/bin/codesign should use'
c.action do |args, options|
Sigh::Resign.new.run(options, args)
end
end
@@ -94,10 +95,9 @@
default_command :renew
run!
end
- # rubocop:enable Metrics/MethodLength
def multiple_values_option_proc(command, name)
proc do |value|
value = yield(value) if block_given?
option = command.proxy_options.find { |opt| opt[0] == name } || []