lib/scan/options.rb in scan-0.1.2 vs lib/scan/options.rb in scan-0.2.0
- old
+ new
@@ -28,11 +28,11 @@
raise "Project file is not a project file, must end with .xcodeproj".red unless v.include?(".xcodeproj")
end),
FastlaneCore::ConfigItem.new(key: :device,
short_option: "-a",
optional: true,
- is_string: false,
+ is_string: true,
env_name: "SCAN_DEVICE",
description: "The name of the simulator type you want to run tests on"),
FastlaneCore::ConfigItem.new(key: :scheme,
short_option: "-s",
optional: true,
@@ -98,9 +98,13 @@
description: "Create an Incoming WebHook for your Slack group to post results there",
optional: true,
verify_block: proc do |value|
raise "Invalid URL, must start with https://" unless value.start_with? "https://"
end),
+ FastlaneCore::ConfigItem.new(key: :slack_channel,
+ env_name: "SCAN_SLACK_CHANNEL",
+ description: "#channel or @username",
+ optional: true),
FastlaneCore::ConfigItem.new(key: :skip_slack,
description: "Don't publish to slack, even when an URL is given",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :slack_only_on_failure,