@@ -7,8 +7,8 @@ export default class CompareCommand extends Command {
77
88 static examples = [
99 '$ csdx content-type:compare -s "xxxxxxxxxxxxxxxxxxx" -c "home_page"' ,
10- '$ csdx content-type:compare -s "xxxxxxxxxxxxxxxxxxx" -c "home_page" -left # -right #' ,
11- '$ csdx content-type:compare -a "management token" -c "home_page" -left # -right #' ,
10+ '$ csdx content-type:compare -s "xxxxxxxxxxxxxxxxxxx" -c "home_page" -l # -r #' ,
11+ '$ csdx content-type:compare -a "management token" -c "home_page" -l # -r #' ,
1212 ] ;
1313
1414 static flags = {
@@ -35,13 +35,13 @@ export default class CompareCommand extends Command {
3535
3636 left : flags . integer ( {
3737 char : 'l' ,
38- description : 'previous Content Type version' ,
38+ description : 'Content Type version' ,
3939 required : true ,
4040 } ) ,
4141
4242 right : flags . integer ( {
4343 char : 'r' ,
44- description : 'current Content Type version' ,
44+ description : 'Content Type version' ,
4545 required : true ,
4646 } ) ,
4747 }
@@ -57,8 +57,8 @@ export default class CompareCommand extends Command {
5757 this . client . getContentType ( this . apiKey , flags [ 'content-type' ] , true , flags . right ) ,
5858 ] )
5959
60- this . log ( `Displaying details for ' ${ flags [ 'content-type' ] } ' on ' ${ stack . name } .'` )
61- await buildOutput ( flags [ 'content-type' ] , previous , current )
60+ const output = await buildOutput ( flags [ 'content-type' ] , previous , current )
61+ this . printOutput ( output , 'changes' , flags [ 'content-type' ] , stack . name )
6262 } catch ( error ) {
6363 this . error ( error , { exit : 1 , suggestions : error . suggestions } )
6464 }
0 commit comments