Module: Pindo::Options::AppStoreOptions

Extended by:
OptionGroup
Defined in:
lib/pindo/options/groups/appstore_options.rb

Overview

App Store / Google Play 商店操作参数组定义 ITC 信息管理、内购、截图、元数据等商店相关参数

Class Method Summary collapse

Methods included from OptionGroup

all, all_options, except, merge, select, select_with_defaults

Class Method Details

.all_optionsObject



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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/pindo/options/groups/appstore_options.rb', line 11

def self.all_options
  @all_options ||= {
    metadata: OptionItem.new(
      key: :metadata,
      name: '元数据',
      description: '上传或下载应用元数据',
      type: OptionItem::Boolean,
      env_name: 'PINDO_APPSTORE_METADATA',
      default_value: false,
      optional: true,
      example: 'pindo appstore itcinfo --metadata'
    ),

    screenshots: OptionItem.new(
      key: :screenshots,
      name: '截图',
      description: '上传或下载应用截图',
      type: OptionItem::Boolean,
      env_name: 'PINDO_APPSTORE_SCREENSHOTS',
      default_value: false,
      optional: true,
      example: 'pindo appstore itcinfo --screenshots'
    ),

    overwrite: OptionItem.new(
      key: :overwrite,
      name: '覆盖',
      description: '覆盖已有的数据或文件',
      type: OptionItem::Boolean,
      env_name: 'PINDO_APPSTORE_OVERWRITE',
      default_value: false,
      optional: true,
      example: 'pindo appstore itcinfo --overwrite'
    ),

    sync: OptionItem.new(
      key: :sync,
      name: '同步模式',
      description: '同步截图到 iTunes Connect',
      type: OptionItem::Boolean,
      env_name: 'PINDO_APPSTORE_SYNC',
      default_value: false,
      optional: true,
      example: 'pindo appstore itcinfo --sync'
    ),

    ipa: OptionItem.new(
      key: :ipa,
      name: '上传 IPA',
      description: '上传 IPA 到 iTunes Connect',
      type: OptionItem::Boolean,
      env_name: 'PINDO_APPSTORE_IPA',
      default_value: false,
      optional: true,
      example: 'pindo appstore itcinfo --ipa'
    ),

    check: OptionItem.new(
      key: :check,
      name: '检查',
      description: '检查内购配置信息',
      type: OptionItem::Boolean,
      env_name: 'PINDO_APPSTORE_CHECK',
      default_value: false,
      optional: true,
      example: 'pindo appstore iap --check'
    ),

    boss: OptionItem.new(
      key: :boss,
      name: 'Boss 模式',
      description: '生成 Boss 平台的内购信息',
      type: OptionItem::Boolean,
      env_name: 'PINDO_APPSTORE_BOSS',
      default_value: false,
      optional: true,
      example: 'pindo appstore iap --boss'
    ),

    download: OptionItem.new(
      key: :download,
      name: '下载',
      description: '从 App Store 下载应用的内购信息',
      type: OptionItem::Boolean,
      env_name: 'PINDO_APPSTORE_DOWNLOAD',
      default_value: false,
      optional: true,
      example: 'pindo appstore iap --download'
    ),

    delete: OptionItem.new(
      key: :delete,
      name: '删除 Tag',
      description: '删除指定的 Git Tag(同时删除代码仓库和配置仓库)',
      type: String,
      env_name: 'PINDO_DELETE_TAG',
      optional: true,
      example: 'pindo appstore tag --delete=tag_name'
    )
  }
end