mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 06:31:27 -07:00
make just admin exit cleanly
This commit is contained in:
@@ -263,6 +263,9 @@ const lookup = new Command('lookup')
|
||||
|
||||
export const adminCmd = new Command('admin')
|
||||
.description('Operator tools for accounts on the shared recflare D1 database')
|
||||
// Bare `admin` (no subcommand) prints help and exits cleanly, rather than
|
||||
// commander's default "missing command" error (exit 1).
|
||||
.action((_opts, command: Command) => command.outputHelp())
|
||||
.addCommand(setPassword)
|
||||
.addCommand(clearPassword)
|
||||
.addCommand(grantDeveloper)
|
||||
|
||||
Reference in New Issue
Block a user