heroku-connect-plugin
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -8,6 +8,7 @@ 'use strict' | ||
function displayResults (results, flags) { | ||
results.errors.forEach(displayResult('red')) | ||
results.warnings.forEach(displayResult('yellow')) | ||
results.errors.forEach(displayResult('RED', 'red')) | ||
results.warnings.forEach(displayResult('YELLOW', 'yellow')) | ||
if (flags.verbose) { | ||
results.passes.forEach(displayResult('green', false)) | ||
results.passes.forEach(displayResult('GREEN', 'green', false)) | ||
results.skips.forEach(displayResult('SKIPPED', 'dim', false)) | ||
} | ||
@@ -20,3 +21,3 @@ } | ||
function displayResult (color, displayMessages) { | ||
function displayResult (label, color, displayMessages) { | ||
// Default to displaying messages, unless overridden | ||
@@ -27,3 +28,3 @@ if (displayMessages === undefined) { | ||
return function (result) { | ||
cli.log(cli.color[color](`${color.toUpperCase()}: ${result.display_name}`)) | ||
cli.log(cli.color[color](`${label}: ${result.display_name}`)) | ||
if (displayMessages) { | ||
@@ -45,3 +46,3 @@ cli.log(result.message) | ||
{name: 'resource', description: 'specific connection resource name', hasValue: true}, | ||
{name: 'verbose', char: 'v', description: 'display passed check information as well'}, | ||
{name: 'verbose', char: 'v', description: 'display passed and skipped check information as well'}, | ||
regions.flag | ||
@@ -48,0 +49,0 @@ ], |
@@ -18,2 +18,3 @@ 'use strict' | ||
{name: 'resource', description: 'specific connection resource name', hasValue: true}, | ||
{name: 'verbose', char: 'v', description: 'display passed and skipped check information as well'}, | ||
regions.flag | ||
@@ -34,4 +35,4 @@ ], | ||
cli.styledHeader(mapping.object_name) | ||
diagnose.displayResults(results.json) | ||
diagnose.displayResults(results.json, context.flags) | ||
})) | ||
} |
@@ -114,3 +114,3 @@ 'use strict' | ||
} else if (connections.length > 1) { | ||
throw new Error("Multiple connections found. Please use '--resource' to specify a single connection by resource name.") | ||
throw new Error("Multiple connections found. Please use '--resource' to specify a single connection by resource name. Use 'connect:info' to list the resource names.") | ||
} else { | ||
@@ -117,0 +117,0 @@ return yield Promise.resolve(connections[0]) |
{ | ||
"name": "heroku-connect-plugin", | ||
"description": "Heroku Connect plugin for Heroku CLI", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"author": "Heroku (@heroku)", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
92137
848