mirror of
https://github.com/daydreamer-json/ak-endfield-api-archive.git
synced 2026-03-22 07:12:28 +01:00
feat: implement authentication test command and api utilities
This commit is contained in:
21
src/cmd.ts
21
src/cmd.ts
@@ -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(', ') + ')',
|
||||
|
||||
Reference in New Issue
Block a user