Class: BranchIOCLI::Configuration::ValidateOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/branch_io_cli/configuration/validate_options.rb

Class Method Summary collapse

Class Method Details

.available_optionsObject



5
6
7
8
9
10
11
12
13
14
15
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
52
53
# File 'lib/branch_io_cli/configuration/validate_options.rb', line 5

def available_options
  [
    Option.new(
      name: :live_key,
      description: "Branch live key expected in project",
      example: "key_live_xxxx",
      type: String,
      aliases: "-L"
    ),
    Option.new(
      name: :test_key,
      description: "Branch test key expected in project",
      example: "key_test_yyyy",
      type: String,
      aliases: "-T"
    ),
    Option.new(
      name: :domains,
      description: "Comma-separated list of domains expected to be configured in the project (Branch domains or non-Branch domains)",
      type: Array,
      example: "example.com,www.example.com",
      aliases: "-D",
      default_value: []
    ),
    Option.new(
      name: :xcodeproj,
      description: "Path to an Xcode project to validate",
      type: String,
      example: "MyProject.xcodeproj"
    ),
    Option.new(
      name: :target,
      description: "Name of a target to validate in the Xcode project",
      type: String,
      example: "MyAppTarget"
    ),
    Option.new(
      name: :configurations,
      description: "Comma-separated list of configurations to validate (default: all)",
      type: Array,
      example: "Debug,Release"
    ),
    Option.new(
      name: :universal_links_only,
      description: "Validate only the Universal Link configuration",
      default_value: false
    )
  ] + Option.global_options
end