UNPKG

576 BJavaScriptView Raw
1const path=require('path'),commander=require('commander'),save=require('../saveInfo/index');commander.option('-m --mp','\u5C0F\u7A0B\u5E8F\u4FDD\u5B58\u4FE1\u606F').option('-o --option <value>','\u4E0A\u4F20\u9009\u9879').option('-p --projectPath [value]','\u5C0F\u7A0B\u5E8F\u4FDD\u5B58\u4FE1\u606F').parse(process.argv);let projectDir=commander.projectPath||process.cwd(),gitRepoDir=path.resolve(projectDir,'..');commander.mp?save(gitRepoDir,projectDir,'mp'):'sr'===commander.option?save(gitRepoDir,projectDir,'sr'):'sa'===commander.option||save(gitRepoDir,projectDir,'h5');
\No newline at end of file