File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ cli.command('list', 'List changesets')
4444 . option ( '--max <version>' , 'Maximum version (included)' )
4545 . option ( '--grep <version>' , 'Grep version' )
4646 . option ( '--json' , 'Output in json format' )
47+ . option ( '--pretty-json' , 'Output in pretty json format' )
4748 . option ( '--all' , 'List all changesets (alpha/beta included)' )
4849 . option ( '--beta' , 'List alpha/beta changesets' )
4950 . option ( '--versions' , 'Output only the available Unity versions' )
@@ -76,7 +77,10 @@ cli.command('list', 'List changesets')
7677 results = results . map ( r => r . version ) ;
7778
7879 // Output in json format or plain
79- if ( options . json ) {
80+ if ( options . prettyJson ) {
81+ console . log ( JSON . stringify ( results , null , ' ' ) ) ;
82+ }
83+ else if ( options . json ) {
8084 console . log ( JSON . stringify ( results ) ) ;
8185 }
8286 else {
You can’t perform that action at this time.
0 commit comments