Sha256: 4932260bb56c76d1dadc25aa05f9affec62378bc016760d4a985dec3f2657afc
Contents?: true
Size: 1.49 KB
Versions: 1
Compression:
Stored size: 1.49 KB
Contents
require 'thor' require 'yk_command/analyze/analyze' require 'yk_command/analyze/request' require 'yk_command/module/yk_module' require_relative 'component_manage/component_manage_platform' module YkCommand class CLI < Thor include Thor::Actions desc 'generate <Path> <Module Name> <Language> <Prefix - 前缀> <Author - 作者>', '直接生成项目 例子: yk_command generate . HomeModule oc MT Tom.Liu ' method_option :generate, aliases: '-g' def generate(path = nil, name, lang, class_prefix, author) YkModule.new(self .args,self .options).generate(path, name, lang, class_prefix, author) end desc 'create <Path>', '在某个路径下交互式生成项目' method_option :create, aliases: '-c' def create(path = nil) YkModule.new(self .args,self .options ).create(path) end desc 'dependency <Podfile.lock Path>', '解析Podfile.lock' method_option :dependency, aliases: '-d' def dependency(path = nil) Analyzer.new.dependency path end desc 'workspace_analyze <AppHost Path>', '遍历项目目录 批量上传项目依赖信息' method_option :workspace_analyze, aliases: '-w' def workspace_analyze(path = nil) Analyzer.new.workspace_analyze path end desc 'platform_refresh ', '更新平台的app和组件数据' method_option :platform_refresh, aliases: '-pr' def platform_refresh p = ComponentManagePlatform.new p.update_app_data p.update_component_data end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yk_command-0.5.2 | lib/yk_command/commands.rb |