From 61843bd81e5dde0b331b8a272185ec040b966a34 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 29 Feb 2024 09:58:56 +0000 Subject: [PATCH 1/3] Finalized changelog for v1.4.0 --- changelog.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 5135230..fb507c0 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.4.0] - 2024-02-29 + ### Added - New Github Actions for testing and releases @@ -115,7 +117,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - New `testbox apidocs` command to open the TestBox API Docs in your browser. - Initial Creation of this project -[Unreleased]: https://github.com/Ortus-Solutions/testbox-cli/compare/v1.3.0...HEAD +[Unreleased]: https://github.com/Ortus-Solutions/testbox-cli/compare/v1.4.0...HEAD + +[1.4.0]: https://github.com/Ortus-Solutions/testbox-cli/compare/v1.3.0...v1.4.0 [1.3.0]: https://github.com/Ortus-Solutions/testbox-cli/compare/v1.2.2...v1.3.0 From 84e7523fd26b49e8b647e0ce3061d9d959da03b1 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Fri, 6 Sep 2024 10:36:00 -0600 Subject: [PATCH 2/3] Show debug output when verbose and fail/error --- models/CLIRenderer.cfc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/models/CLIRenderer.cfc b/models/CLIRenderer.cfc index b8cd486..251e6e5 100644 --- a/models/CLIRenderer.cfc +++ b/models/CLIRenderer.cfc @@ -9,6 +9,9 @@ */ component { + property name="JSONPrettyPrint" inject="provider:JSONPrettyPrint"; + property name='JSONService' inject='JSONService'; + processingdirective pageEncoding="UTF-8"; variables.HEADER_CELL_CHARS = 7; @@ -296,6 +299,18 @@ component { "#repeatString( " ", arguments.level + 2 )#-> Failure: #local.thisSpec.failMessage##chr( 13 )#", COLOR.FAIL ); + + param local.thisSpec.debugBuffer = []; + if ( verbose && !local.thisSpec.debugBuffer.isEmpty() ) { + print.text( repeatString( " ", level + 2 ) ).boldWhiteOnGreenLine( "Debug Buffer:" ); + print.line( + JSONPrettyPrint.formatJSON( + json = local.thisSpec.debugBuffer, + ansiColors = JSONService.getANSIColors() + ).listToArray( chr( 10 ) ) + .map( ( line ) => "#repeatString( " ", level + 2 )##line#" ).toList( chr( 10 ) ) + ).line(); + } } if ( local.thisSpec.status == "error" ) { @@ -340,6 +355,18 @@ component { } } } ); + + param local.thisSpec.debugBuffer = []; + if ( verbose && !local.thisSpec.debugBuffer.isEmpty() ) { + print.text( repeatString( " ", level + 2 ) ).boldWhiteOnGreenLine( "Debug Buffer:" ); + print.line( + JSONPrettyPrint.formatJSON( + json = local.thisSpec.debugBuffer, + ansiColors = JSONService.getANSIColors() + ).listToArray( chr( 10 ) ) + .map( ( line ) => "#repeatString( " ", level + 2 )##line#" ).toList( chr( 10 ) ) + ).line(); + } } } From b67d18d9013e15110d88d68aa2e7fa8bc7645b99 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Fri, 6 Sep 2024 10:42:09 -0600 Subject: [PATCH 3/3] FOrmatting --- models/CLIRenderer.cfc | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/models/CLIRenderer.cfc b/models/CLIRenderer.cfc index 251e6e5..1d11910 100644 --- a/models/CLIRenderer.cfc +++ b/models/CLIRenderer.cfc @@ -10,7 +10,7 @@ component { property name="JSONPrettyPrint" inject="provider:JSONPrettyPrint"; - property name='JSONService' inject='JSONService'; + property name="JSONService" inject="JSONService"; processingdirective pageEncoding="UTF-8"; @@ -303,13 +303,18 @@ component { param local.thisSpec.debugBuffer = []; if ( verbose && !local.thisSpec.debugBuffer.isEmpty() ) { print.text( repeatString( " ", level + 2 ) ).boldWhiteOnGreenLine( "Debug Buffer:" ); - print.line( - JSONPrettyPrint.formatJSON( - json = local.thisSpec.debugBuffer, - ansiColors = JSONService.getANSIColors() - ).listToArray( chr( 10 ) ) - .map( ( line ) => "#repeatString( " ", level + 2 )##line#" ).toList( chr( 10 ) ) - ).line(); + print + .line( + JSONPrettyPrint + .formatJSON( + json = local.thisSpec.debugBuffer, + ansiColors = JSONService.getANSIColors() + ) + .listToArray( chr( 10 ) ) + .map( ( line ) => "#repeatString( " ", level + 2 )##line#" ) + .toList( chr( 10 ) ) + ) + .line(); } } @@ -359,13 +364,18 @@ component { param local.thisSpec.debugBuffer = []; if ( verbose && !local.thisSpec.debugBuffer.isEmpty() ) { print.text( repeatString( " ", level + 2 ) ).boldWhiteOnGreenLine( "Debug Buffer:" ); - print.line( - JSONPrettyPrint.formatJSON( - json = local.thisSpec.debugBuffer, - ansiColors = JSONService.getANSIColors() - ).listToArray( chr( 10 ) ) - .map( ( line ) => "#repeatString( " ", level + 2 )##line#" ).toList( chr( 10 ) ) - ).line(); + print + .line( + JSONPrettyPrint + .formatJSON( + json = local.thisSpec.debugBuffer, + ansiColors = JSONService.getANSIColors() + ) + .listToArray( chr( 10 ) ) + .map( ( line ) => "#repeatString( " ", level + 2 )##line#" ) + .toList( chr( 10 ) ) + ) + .line(); } } }