add option to specify number of jobs for build command

This commit is contained in:
Slowlife01 2025-03-27 10:50:31 +07:00
parent fd234005ec
commit fc713c85db
4 changed files with 23 additions and 3 deletions

View file

@ -29,6 +29,18 @@ export const commands: Cmd[] = [
description:
"Doesn't check to see if all of the patches have been applied",
},
{
arg: "-j, --jobs <number>",
description:
'Number of jobs to run in parallel. Defaults to the number of cores on your machine.',
parse: (val: string) => {
const parsed = parseInt(val, 10)
if (isNaN(parsed)) {
throw new Error('Invalid number of jobs')
}
return parsed
}
}
],
requestController: async () => (await import('./commands/build')).build,
},