feat(cli): must select at least one filetype

This commit is contained in:
Xmader 2020-11-26 15:02:25 -05:00
parent 0d8ab40ba9
commit 427a75f2dd
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ void (async () => {
name: 'types',
message: 'Filetype Selection',
choices: typeChoices,
validate (input: number[]) {
return input.length >= 1
},
})
const filetypes = types.map(i => INDV_DOWNLOADS[i])