Add force option to download command

This commit is contained in:
trickypr 2022-11-15 12:40:51 +11:00
parent e79d4b099c
commit 77a63264b7
4 changed files with 24 additions and 12 deletions

View file

@ -64,8 +64,14 @@ export const commands: Cmd[] = [
requestController: async () => (await import('./commands/discard')).discard,
},
{
cmd: 'download [ffVersion]',
cmd: 'download',
description: 'Download Firefox.',
options: [
{
arg: '--force',
description: 'Delete the engine directory if it already exists',
}
],
requestController: async () =>
(await import('./commands/download')).download,
},