mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
22.0.0
This commit is contained in:
@@ -15,9 +15,12 @@ module.exports = class ClearSettingCommand extends Command {
|
||||
key: 'setting',
|
||||
prompt: 'What setting do you want to clear?',
|
||||
type: 'string',
|
||||
validate: setting => {
|
||||
if (settings.includes(setting)) return true;
|
||||
return `Please enter one of the following: ${settings.join(', ')}.`;
|
||||
validate: (setting) => {
|
||||
if (settings.includes(setting)) {
|
||||
return true;
|
||||
} else {
|
||||
return `Please enter one of the following: ${settings.join(', ')}.`;
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user