fix CLI management

This commit is contained in:
lesion
2022-05-05 16:01:39 +02:00
parent 282b638928
commit 6757ae2dc6
3 changed files with 17 additions and 16 deletions

View File

@@ -38,8 +38,7 @@ async function list () {
console.log()
}
const accountsCLI = yargs => {
return yargs
const accountsCLI = yargs => yargs
.command('list', 'List all accounts', list)
.command('modify', 'Modify', {
account: {
@@ -48,7 +47,7 @@ const accountsCLI = yargs => {
demandOption: true
},
'reset-password': {
describe: 'Resets the password of the given accoun ',
describe: 'Resets the password of the given account ',
type: 'boolean'
}
}, modify)
@@ -56,6 +55,6 @@ const accountsCLI = yargs => {
.recommendCommands()
.strict()
.demandCommand(1, '')
}
.argv
module.exports = accountsCLI
module.exports = accountsCLI