Skip to content

Commit 342846f

Browse files
MtMathmob-sakai
authored andcommitted
feat(cli): Add new supported filter option to cli
1 parent 9290171 commit 342846f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cli.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ new Command()
5454
.group("Search options")
5555
.option("--all", "Search all changesets (alpha/beta included)")
5656
.option("--pre-release, --beta", "Search only pre-release (alpha/beta) changesets", { conflicts: ["all", "lts", "xlts"] })
57-
.option("--lts", "Only the LTS versions", { conflicts: ["all", "pre-release", "xlts"] })
58-
.option("--xlts", "Only the LTS/XLTS versions (require 'Enterprise' or 'Industry' license to install XLTS version)", { conflicts: ["all", "pre-release", "lts"] })
57+
.option("--lts", "Only the LTS versions", { conflicts: ["all", "pre-release", "xlts", "supported"] })
58+
.option("--xlts", "Only the LTS/XLTS versions (require 'Enterprise' or 'Industry' license to install XLTS version)", { conflicts: ["all", "pre-release", "lts", "supported"] })
59+
.option("--supported", "Only the supported versions (including Unity 6000)", { conflicts: ["all", "pre-release", "lts", "xlts"] })
5960
// Filter options.
6061
.group("Filter options")
6162
.option("--min <version>", "Minimum version (included)")
@@ -83,7 +84,9 @@ new Command()
8384
? SearchMode.LTS
8485
: options.xlts
8586
? SearchMode.XLTS
86-
: SearchMode.Default;
87+
: options.supported
88+
? SearchMode.SUPPORTED
89+
: SearchMode.Default;
8790

8891
// Group mode.
8992
const groupMode = (options.latestPatch || options.minorVersionOnly)

0 commit comments

Comments
 (0)