circle-cli
Advanced tools
Comparing version 1.0.8 to 1.0.9
14
index.js
@@ -32,2 +32,4 @@ #!/usr/bin/env node | ||
if (!TOKEN) return console.log('CIRCLE_TOKEN is not set') | ||
yargs | ||
@@ -47,3 +49,2 @@ .command('projects', 'Print projects', function(yargs) { | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
data.forEach(function(item) { | ||
@@ -74,3 +75,2 @@ console.log(item.username + '/' + item.reponame) | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
var t = new Table | ||
@@ -134,3 +134,2 @@ data.filter(function(item) { | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
data.forEach(function(item) { | ||
@@ -148,3 +147,2 @@ console.log(running('- ') + success(item.url)) | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
console.log(success(argv.p + ' #' + argv.n + ' retried')) | ||
@@ -160,3 +158,2 @@ }).catch(function(err) { | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
console.log(success(argv.p + ' #' + argv.n + ' canceled')) | ||
@@ -171,3 +168,2 @@ }).catch(function(err) { | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
var t = new Table | ||
@@ -203,3 +199,2 @@ t.cell('key', 'Build') | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
var t = new Table | ||
@@ -226,3 +221,2 @@ data.filter(function(item) { | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
var build = data.filter(function(item) { | ||
@@ -234,3 +228,2 @@ return (item.branch === 'dev' || item.branch === 'master') | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
var t = new Table | ||
@@ -268,3 +261,2 @@ t.cell('key', 'Build') | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
var build = data.filter(function(item) { | ||
@@ -290,3 +282,2 @@ return (item.branch === 'dev' || item.branch === 'master') | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
var build = data.filter(function(item) { | ||
@@ -310,3 +301,2 @@ return (item.branch === 'dev' || item.branch === 'master') | ||
.then(function(data) { | ||
if (!data) return console.log('数据不存在') | ||
var build = data.filter(function(item) { | ||
@@ -313,0 +303,0 @@ return (item.branch === 'dev' || item.branch === 'master') |
{ | ||
"name": "circle-cli", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "circle-ci cli", | ||
@@ -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
221479
291