feat: implement authentication test command and api utilities

This commit is contained in:
daydreamer-json
2026-01-23 02:40:37 +09:00
parent 63c011f27e
commit f981dc86bd
13 changed files with 616 additions and 15 deletions

View File

@@ -42,6 +42,27 @@ async function parseCommand() {
},
wrapHandler(cmds.test),
)
.command(
['authTest [token] [email] [password]'],
'Auth test command',
(yargs) => {
yargs
.positional('token', {
describe: 'Gryphline account service token',
type: 'string',
})
.positional('email', {
describe: 'Gryphline account email address',
type: 'string',
})
.positional('password', {
describe: 'Gryphline account password',
type: 'string',
})
.options({});
},
wrapHandler(cmds.authTest),
)
.options({
'log-level': {
desc: 'Set log level (' + TypesLogLevels.LOG_LEVELS_NUM.join(', ') + ')',