Comparing version 0.4.7 to 0.4.8
@@ -16,6 +16,8 @@ 'use strict'; | ||
.then(function(){ | ||
console.log('Project List:'); | ||
var projects = Config.getProjectList(); | ||
projects.forEach(function(project){ | ||
console.log('* ' + project); | ||
return Config.getProjects().then(function(response){ | ||
console.log('Project List:'); | ||
response.body.forEach(function(project){ | ||
var line = '* ' + project.name + ' (' + project.sausaVersion + ')'; | ||
console.log(project.updateableTo ? line.grey : line); | ||
}); | ||
}); | ||
@@ -22,0 +24,0 @@ }); |
@@ -91,2 +91,10 @@ 'use strict'; | ||
}, | ||
getProjects: function(){ | ||
var that = this; | ||
var $28 = this.getAPIClient(); | ||
return $28.api.Project.listProjects({ | ||
token: that.getAccessToken() | ||
}); | ||
}, | ||
@@ -93,0 +101,0 @@ handleAPIAuthError: function(error){ |
@@ -9,3 +9,3 @@ { | ||
"description": "Command line utility to download and upload 28.io queries.", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"keywords": [ | ||
@@ -12,0 +12,0 @@ "jsoniq", |
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
165397
1129