Skip to content

Commit 862f8a0

Browse files
committed
chore(cli): cleanup
1 parent 1cc2f4a commit 862f8a0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

cli/src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,17 @@ function getRepositories(selectedRepos?: string[]): IRepository[] {
6666
interface CliOptions {
6767
modId?: string[];
6868
modFile?: string[];
69+
sinytra: boolean;
70+
6971
exactVersion?: string;
7072
minVersion?: string;
7173
maxVersion?: string;
7274
loader?: string[];
75+
7376
details: boolean;
74-
nbSolutions: number;
75-
sinytra: boolean;
77+
repository?: string[];
7678
remote?: string;
79+
nbSolutions: number;
7780
}
7881

7982
function validateCliOptions(options: CliOptions) {
@@ -206,7 +209,7 @@ program
206209
.option('--sinytra', 'Inject forge and neoforge into fabric-compatible releases', false)
207210
.option('-r, --repository <repo...>', 'Repositories to use (modrinth, curseforge)')
208211
.option('--remote <url>', 'Remote server URL to query mods', '')
209-
.action(async (cliOptions: CliOptions & { repository?: string[] }) => {
212+
.action(async (cliOptions: CliOptions) => {
210213
const modQueryService = getModQueryService(cliOptions.repository, cliOptions.remote);
211214
validateCliOptions(cliOptions);
212215

0 commit comments

Comments
 (0)