require 'KCommercialPipeline/command/command' require 'KCommercialPipeline/core/app_demo' module KCommercial module KCPipeline class Command class AppDemo < Command attr_accessor :app_id attr_accessor :build_type attr_accessor :keep_task_id attr_reader :addition_slices self.command = 'build_app' self.version = KCommercialPipeline::VERSION self.summary = 'iOS商业化一键打包脚本' def self.options [ ['--build_type',"Debug or Release"], ['--keep_task_id',"keep组件任务id"], ['--slice=PATH', 'The path of the slice that is addition'], ].concat(super) end def initialize(argv) @build_type = argv.option('build_type') @keep_task_id = argv.option('keep_task_id') || 0 @slice_paths = argv.all_options('slice') super end def run RunDemo.new(@build_type,@app_id,@keep_task_id,@slice_paths).run end end end end end