Sha256: b254f0bb1f039f28520cb228cb4df66d200ad1995e5f3fecd8b6e80794bbc1a2
Contents?: true
Size: 731 Bytes
Versions: 3
Compression:
Stored size: 731 Bytes
Contents
# coding: utf-8 module Fir class Cli desc 'config', '配置全局设置' option :token, :aliases => '-t', :desc => '用户 token' option :email, :aliases => '-e', :desc => '邮件地址' # option :resign, :aliases => '-r', :desc => '是否以企业签名发布 ios 应用', :type => :boolean option :private_key, :desc => '私密通道' option :publish, :aliases => '-p', :desc => '编译打包自动发布至 FIR.im', :type => :boolean output_options def config(*args) _set_config options.merge _convert_settings *args _puts '> 设置完成,您现在使用的设置是' @config.each { |conf| _puts "> #{Paint[conf[0].to_s.rjust(10), :blue]} => #{conf[1]}" } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fir-cli-0.2.3.1 | lib/fir-cli-commands/01-config.rb |
fir-cli-0.2.3 | lib/fir-cli-commands/01-config.rb |
fir-cli-0.2.2 | lib/fir-cli-commands/01-config.rb |