new command: show-admin
Massimo Melina committed
Dec 24, 2022 at 18:13 UTC
9270fe65ef11e9036b17b0276aab5a031cb2aae9
1 file changed
+7
src/commands.ts
+7
@@ -2,6 +2,7 @@ import { addAccount, getAccount, updateAccount } from './perm'
2
import { getConfig, getConfigDefinition, setConfig } from './config'
3
import _ from 'lodash'
4
import { getUpdate, update } from './update'
5
+import { openAdmin } from './listen'
6
import yaml from 'yaml'
7
import { BUILD_TIMESTAMP, VERSION } from './const'
8
@@ -32,6 +33,12 @@ const commands = {
33
'\n - ' + name + ' ' + params))
34
}
35
},
36
+ 'show-admin': {
37
+ params: '',
38
+ cb(){
39
+ openAdmin()
40
+ }
41
+ },
42
'create-admin': {
43
params: '<password> [<username>=admin]',
44
async cb(password: string, username='admin') {