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