Module: Pindo::Options::UtilsOptions
- Extended by:
- OptionGroup
- Defined in:
- lib/pindo/options/groups/utils_options.rb
Overview
工具及辅助命令参数组定义 utils、appstore、gplay 等命令中共享的辅助参数
Class Method Summary collapse
Methods included from OptionGroup
all, all_options, except, merge, select, select_with_defaults
Class Method Details
.all_options ⇒ Object
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 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/pindo/options/groups/utils_options.rb', line 11 def self. @all_options ||= { down: OptionItem.new( key: :down, name: '下载', description: '下载资源(元数据、截图等)', type: OptionItem::Boolean, env_name: 'PINDO_DOWN', default_value: false, optional: true, example: 'pindo appstore metadata --down' ), test: OptionItem.new( key: :test, name: '测试模式', description: '使用测试环境仓库', type: OptionItem::Boolean, env_name: 'PINDO_TEST', default_value: false, optional: true, example: 'pindo appstore initconfig --test' ), mode: OptionItem.new( key: :mode, name: '版本模式', description: '版本增加模式(major/minor/patch),默认 minor', type: String, env_name: 'PINDO_REPO_MODE', default_value: 'minor', optional: true, example: 'pindo utils repoinit --mode=minor' ), retag: OptionItem.new( key: :retag, name: '重新打标签', description: '强制重新创建当前版本的 Git Tag', type: OptionItem::Boolean, env_name: 'PINDO_RETAG', default_value: false, optional: true, example: 'pindo utils repoinit --retag' ), fast: OptionItem.new( key: :fast, name: '快速模式', description: '快速更新证书(跳过部分验证)', type: OptionItem::Boolean, env_name: 'PINDO_CERT_FAST', default_value: false, optional: true, example: 'pindo utils renewcert --fast' ), fixedid: OptionItem.new( key: :fixedid, name: '固定 ID', description: '重新更新 Bundle ID 的功能配置', type: OptionItem::Boolean, env_name: 'PINDO_CERT_FIXEDID', default_value: false, optional: true, example: 'pindo utils renewcert --fixedid' ), nupkg: OptionItem.new( key: :nupkg, name: 'NuGet 包', description: '指定要上传的 .nupkg 文件路径', type: String, env_name: 'PINDO_NUPKG', optional: true, example: 'pindo unity packpush --nupkg=path/to/package.nupkg' ), run: OptionItem.new( key: :run, name: '本地运行', description: '编译完成后在本地打开运行', type: OptionItem::Boolean, env_name: 'PINDO_RUN', default_value: false, optional: true, example: 'pindo web autobuild --run' ), port: OptionItem.new( key: :port, name: '端口号', description: '指定本地 HTTP 服务器端口', type: String, env_name: 'PINDO_PORT', default_value: '8000', optional: true, example: 'pindo web run --port=3000' ), debug: OptionItem.new( key: :debug, name: '调试模式', description: '显示详细的调试信息', type: OptionItem::Boolean, env_name: 'PINDO_DEBUG_MODE', default_value: false, optional: true, example: 'pindo web run --debug' ), cliff: OptionItem.new( key: :cliff, name: 'git-cliff', description: '检测并安装 git-cliff 工具,初始化 cliff 配置', type: OptionItem::Boolean, env_name: 'PINDO_CLIFF', default_value: false, optional: true, example: 'pindo utils repoinit --cliff' ) } end |