MXS-1300: Add create/destroy/list commands for users

Users can now be listed, created and destroyed via MaxCtrl.
This commit is contained in:
Markus Mäkelä
2017-07-06 14:13:21 +03:00
parent b0f2d02787
commit a0e7a97729
3 changed files with 22 additions and 0 deletions

View File

@ -65,6 +65,11 @@ exports.builder = function(yargs) {
{'Version': 'attributes.version'}
])
})
.command('users', 'List created network users', {}, function() {
getCollection('users/inet',[
{'Name':'id'}
])
})
.usage('Usage: list <command>')
.help()
.command('*', 'the default command', {}, () => {