require 'KCommercialPipeline/command/command' require 'KCommercialPipeline/core/kim_cfg' require 'KCommercialPipeline/core/version_pipeline/release_branches' module KCommercial module KCPipeline class Command class AutoReleaseCMD < Command attr_reader :app_id attr_reader :branch_name self.command = 'auto_release' self.version = KCommercialPipeline::VERSION self.summary = '自动拉取最新release分支' def self.options [ ['--name', 'The new release branch name,defaut auto increase' ], ].concat(super ) end def initialize(argv) @branch_name = argv.option('name') || "" super end def run AutoRelease.new(@branch_name).run! end end end end end