Sha256: 370b12ab69de7e8ff83711499f8ccaeb87cd98c1029f1b97da91fda7b625eb47
Contents?: true
Size: 1.18 KB
Versions: 6
Compression:
Stored size: 1.18 KB
Contents
require 'thor' require 'yk_command/analyze/analyze' require 'yk_command/analyze/request' require 'yk_command/module/yk_module' 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 end end
Version data entries
6 entries across 6 versions & 1 rubygems