mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
This doesn't work
This commit is contained in:
@@ -14,7 +14,6 @@ module.exports = class BinaryCommand extends Command {
|
|||||||
key: 'mode',
|
key: 'mode',
|
||||||
prompt: `Would you like to ${list(modes, 'or')}?`,
|
prompt: `Would you like to ${list(modes, 'or')}?`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
format: `<${modes.join('|')}>`,
|
|
||||||
validate: mode => {
|
validate: mode => {
|
||||||
if (modes.includes(mode.toLowerCase())) return true;
|
if (modes.includes(mode.toLowerCase())) return true;
|
||||||
return `Invalid mode, please enter either ${list(modes, 'or')}.`;
|
return `Invalid mode, please enter either ${list(modes, 'or')}.`;
|
||||||
|
|||||||
Reference in New Issue
Block a user