Comparing version 1.0.1 to 1.0.2
24
index.js
@@ -6,16 +6,18 @@ var B = require('br4nch'); | ||
module.exports = function() { | ||
B() | ||
.then((value) => {resolve(value)}) | ||
.catch((err) => { | ||
return new Promise(function () { | ||
B() | ||
.then((value) => {resolve(value)}) | ||
.catch((err) => { | ||
console.log('Not a git repository (or any of the parent directories): .git'); | ||
console.log('Not a git repository (or any of the parent directories): .git'); | ||
var prompt = require('prompt'); | ||
prompt.start(); | ||
prompt.get([{name:'url', required: true, description: "Git remote url: Ex. https://github.com/cagataycali/br4anch.git"}], function (err, result) { | ||
E(`git init && git remote add origin ${result.url} && git remote show origin`) | ||
.then((value) => {console.log(value);}) | ||
.catch((err) => {console.log(reject(err));}); | ||
var prompt = require('prompt'); | ||
prompt.start(); | ||
prompt.get([{name:'url', required: true, description: "Git remote url: Ex. https://github.com/cagataycali/br4anch.git"}], function (err, result) { | ||
E(`git init && git remote add origin ${result.url} && git remote show origin`) | ||
.then((value) => {console.log(value);}) | ||
.catch((err) => {console.log(reject(err));}); | ||
}); | ||
}); | ||
}); | ||
}) | ||
} |
{ | ||
"name": "1n1t", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Git init or get current branch easily", | ||
@@ -5,0 +5,0 @@ "main": "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
1581
19