lib/produce/options.rb in produce-1.0.2 vs lib/produce/options.rb in produce-1.1.0

- old
+ new

@@ -63,23 +63,42 @@ is_string: false, default_value: false), FastlaneCore::ConfigItem.new(key: :team_id, short_option: "-b", env_name: "PRODUCE_TEAM_ID", - description: "The ID of your team if you're in multiple teams", + description: "The ID of your Developer Portal team if you're in multiple teams", optional: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id), verify_block: proc do |value| ENV["FASTLANE_TEAM_ID"] = value end), FastlaneCore::ConfigItem.new(key: :team_name, short_option: "-l", env_name: "PRODUCE_TEAM_NAME", - description: "The name of your team if you're in multiple teams", + description: "The name of your Developer Portal team if you're in multiple teams", optional: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_name), verify_block: proc do |value| ENV["FASTLANE_TEAM_NAME"] = value + end), + FastlaneCore::ConfigItem.new(key: :itc_team_id, + short_option: "-k", + env_name: "PRODUCE_ITC_TEAM_ID", + description: "The ID of your iTunes Connect team if you're in multiple teams", + optional: true, + is_string: false, # as we also allow integers, which we convert to strings anyway + default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id), + verify_block: proc do |value| + ENV["FASTLANE_ITC_TEAM_ID"] = value.to_s + end), + FastlaneCore::ConfigItem.new(key: :itc_team_name, + short_option: "-p", + env_name: "PRODUCE_ITC_TEAM_NAME", + description: "The name of your iTunes Connect team if you're in multiple teams", + optional: true, + default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_name), + verify_block: proc do |value| + ENV["FASTLANE_ITC_TEAM_NAME"] = value end) ] end end end