Module: Pindo::Options::TaskOptions

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

Overview

Task 任务参数组定义任务系统特有的参数

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
# File 'lib/pindo/options/groups/task_options.rb', line 11

def self.all_options
  @all_options ||= {
    multi: OptionItem.new(
      key: :multi,
      name: '并发执行',
      description: '使用并发任务系统执行构建(提高构建速度)',
      type: OptionItem::Boolean,
      env_name: 'PINDO_TASK_MULTI',
      default_value: false,
      optional: true,
      cache: false,  # 不缓存该参数,每次都需要显式指定
      example: 'pindo unity autobuild --multi'
    ),

    select: OptionItem.new(
      key: :select,
      name: '选择提交',
      description: '交互式选择历史 git commit(而不是使用 HEAD)',
      type: OptionItem::Boolean,
      env_name: 'PINDO_TASK_SELECT',
      default_value: false,
      optional: true,
      example: 'pindo jps media --select'
    )
  }
end