make-dev-fast
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -77,2 +77,3 @@ var __create = Object.create; | ||
let gitAddress = commands[1]; | ||
gitAddress = gitAddress.replace(/[\?\#].*$/, ""); | ||
let dirName = ""; | ||
@@ -99,6 +100,10 @@ let branch = ""; | ||
if (branch) { | ||
await (0, import_utils.exec)(`cd ${dirName};git checkout ${branch}`); | ||
await (0, import_utils.exec)(`cd ${dirName};git checkout ${branch} --`); | ||
console.log(`auto change banch to ${branch}`); | ||
} | ||
console.log(`git clone ${gitAddress} ${dirName ? `to ${dirName} ` : ""}success`); | ||
console.log(`You can use the following command to enter the project directory:`); | ||
console.log(""); | ||
console.log(`cd ${dirName}`); | ||
console.log(""); | ||
} | ||
@@ -105,0 +110,0 @@ async checkUser() { |
{ | ||
"name": "make-dev-fast", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "make-dev-fast", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19050
488