Skip to content

Commit 356301a

Browse files
committed
Renaming the command to invalidusernames
1 parent 5c88ba8 commit 356301a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

bin/lib/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const program = require('commander')
22
const loadInit = require('./init')
33
const loadStart = require('./start')
4-
const loadBlacklist = require('./blacklist')
4+
const loadInvalidUsernames = require('./invalidUsernames')
55
const { spawnSync } = require('child_process')
66
const 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()

bin/lib/blacklist.js renamed to bin/lib/invalidUsernames.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ const fileRename = util.promisify(fs.rename)
2020

2121
module.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)

0 commit comments

Comments
 (0)