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')
50
50
. option ( '--beta' , 'List alpha/beta changesets' )
51
51
. option ( '--versions' , 'Output only the available Unity versions' )
52
52
. option ( '--minor-versions' , 'Output only the available Unity minor versions' )
53
+ . option ( '--latest-patch' , 'Output only the latest Unity patch versions' )
53
54
. action ( options => ( async ( ) => {
54
55
var results = options . all
55
56
? ( await scrapeArchivedChangesets ( ) ) . concat ( await scrapeBetaChangesets ( ) )
@@ -72,6 +73,10 @@ cli.command('list', 'List changesets')
72
73
results . forEach ( r => r . version = toMinor ( r . version ) )
73
74
results = Object . values ( groupBy ( results , r => r . version ) ) . map ( g => g [ 0 ] ) ;
74
75
}
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
+ }
75
80
76
81
// Output versions
77
82
if ( options . versions || options . minorVersions )
You can’t perform that action at this time.
0 commit comments