File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11const program = require ( 'commander' )
22const loadInit = require ( './init' )
33const loadStart = require ( './start' )
4- const loadBlacklist = require ( './blacklist ' )
4+ const loadInvalidUsernames = require ( './invalidUsernames ' )
55const { spawnSync } = require ( 'child_process' )
66const path = require ( 'path' )
77
@@ -10,7 +10,7 @@ module.exports = function startCli (server) {
1010
1111 loadInit ( program )
1212 loadStart ( program , server )
13- loadBlacklist ( program )
13+ loadInvalidUsernames ( program )
1414
1515 program . parse ( process . argv )
1616 if ( program . args . length === 0 ) program . help ( )
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ const fileRename = util.promisify(fs.rename)
2020
2121module . exports = function ( program ) {
2222 program
23- . command ( 'blacklist ' )
24- . option ( '--notify' , 'Will notify users with usernames that are blacklisted ' )
25- . option ( '--delete' , 'Will delete users with usernames that are blacklisted ' )
26- . description ( 'Manage usernames that are blacklisted ' )
23+ . command ( 'invalidusernames ' )
24+ . option ( '--notify' , 'Will notify users with usernames that are invalid ' )
25+ . option ( '--delete' , 'Will delete users with usernames that are invalid ' )
26+ . description ( 'Manage usernames that are invalid ' )
2727 . action ( async ( options ) => {
2828 const config = await loadConfig ( program , options )
2929 if ( ! config . multiuser ) {
30- return console . error ( 'You are running a single user server, no need to check for blacklisted users ' )
30+ return console . error ( 'You are running a single user server, no need to check for invalid usernames ' )
3131 }
3232
3333 const invalidUsernames = await getInvalidUsernames ( config )
You can’t perform that action at this time.
0 commit comments