mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 22:14:34 +02:00
Nicer args parse
This commit is contained in:
@@ -11,9 +11,7 @@ module.exports = class ReverseCommand extends Command {
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to reverse?',
|
||||
type: 'string',
|
||||
parse: text => {
|
||||
return text.split('').reverse().join('');
|
||||
}
|
||||
parse: text => text.split('').reverse().join('')
|
||||
}]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user