File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ cli.command('list', 'List changesets')
5050 . option ( '--beta' , 'List alpha/beta changesets' )
5151 . option ( '--versions' , 'Output only the available Unity versions' )
5252 . option ( '--minor-versions' , 'Output only the available Unity minor versions' )
53+ . option ( '--latest-patch' , 'Output only the latest Unity patch versions' )
5354 . action ( options => ( async ( ) => {
5455 var results = options . all
5556 ? ( await scrapeArchivedChangesets ( ) ) . concat ( await scrapeBetaChangesets ( ) )
@@ -72,6 +73,10 @@ cli.command('list', 'List changesets')
7273 results . forEach ( r => r . version = toMinor ( r . version ) )
7374 results = Object . values ( groupBy ( results , r => r . version ) ) . map ( g => g [ 0 ] ) ;
7475 }
76+ // Group by minor version and get latest patch
77+ else if ( options . latestPatch ) {
78+ results = Object . values ( groupBy ( results , r => toMinor ( r . version ) ) ) . map ( g => g [ 0 ] ) ;
79+ }
7580
7681 // Output versions
7782 if ( options . versions || options . minorVersions )
You can’t perform that action at this time.
0 commit comments