Class: BranchIOCLI::Configuration::ReportOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/branch_io_cli/configuration/report_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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/branch_io_cli/configuration/report_options.rb', line 5

def available_options
  [
    Option.new(
      name: :workspace,
      description: "Path to an Xcode workspace",
      type: String,
      example: "MyProject.xcworkspace"
    ),
    Option.new(
      name: :xcodeproj,
      description: "Path to an Xcode project",
      type: String,
      example: "MyProject.xcodeproj"
    ),
    Option.new(
      name: :scheme,
      description: "A scheme from the project or workspace to build",
      type: String,
      example: "MyProjectScheme"
    ),
    Option.new(
      name: :target,
      description: "A target to build",
      type: String,
      example: "MyProjectTarget"
    ),
    Option.new(
      name: :configuration,
      description: "The build configuration to use (default: Scheme-dependent)",
      type: String,
      example: "Debug/Release/CustomConfigName"
    ),
    Option.new(
      name: :sdk,
      description: "Passed as -sdk to xcodebuild",
      type: String,
      example: "iphoneos",
      default_value: "iphonesimulator"
    ),
    Option.new(
      name: :podfile,
      description: "Path to the Podfile for the project",
      type: String,
      example: "/path/to/Podfile"
    ),
    Option.new(
      name: :cartfile,
      description: "Path to the Cartfile for the project",
      type: String,
      example: "/path/to/Cartfile"
    ),
    Option.new(
      name: :clean,
      description: "Clean before attempting to build",
      default_value: true
    ),
    Option.new(
      name: :header_only,
      description: "Write a report header to standard output and exit",
      default_value: false,
      aliases: "-H"
    ),
    Option.new(
      name: :pod_repo_update,
      description: "Update the local podspec repo before installing",
      default_value: true
    ),
    Option.new(
      name: :out,
      description: "Report output path",
      default_value: "./report.txt",
      aliases: "-o",
      example: "./report.txt",
      type: String,
      env_name: "BRANCH_REPORT_PATH"
    )
  ] + Option.global_options
end