Comparing version 1.0.0 to 1.0.1
@@ -120,7 +120,7 @@ /** | ||
*/ | ||
exports.displayCommandDescription = function ( node, level ) { | ||
exports.displayCommandDescription = function ( node, level, isLast ) { | ||
level = level || 0; | ||
var prefixWhiteLetter = ' '; | ||
if ( level > 0 ) { | ||
prefixWhiteLetter += (new Array( level )).join( ' ' ) + ' |- '; | ||
prefixWhiteLetter += (new Array( level )).join( ' ' ) + (isLast ? '└' : '├'); | ||
} | ||
@@ -143,6 +143,12 @@ var sprintf = require( 'sprintf' ).sprintf; | ||
var childLevel = level + 1; | ||
var length = 0; | ||
for ( var key in node.children ) { | ||
length++; | ||
} | ||
for ( key in node.children ) { | ||
length--; | ||
exports.displayCommandDescription( | ||
node.children[ key ], | ||
childLevel | ||
childLevel, | ||
length === 0 | ||
); | ||
@@ -149,0 +155,0 @@ } |
{ | ||
"name": "edp", | ||
"description": "Enterprise Develop Platform", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"contributors": [ | ||
@@ -36,3 +36,3 @@ { "name": "errorrik", "email": "errorrik@gmail.com" }, | ||
"extensions": { | ||
"edp-core": [ "install", "link", "unlink" ], | ||
"edp-core": [ "install", "outdated" ], | ||
"edp-config": [ "config" ], | ||
@@ -39,0 +39,0 @@ "edp-build": [ "build" ], |
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
74363
1068