mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 01:10:03 +02:00
add option to specify number of jobs for build command
This commit is contained in:
parent
fd234005ec
commit
fc713c85db
4 changed files with 23 additions and 3 deletions
12
src/cmds.ts
12
src/cmds.ts
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue