mirror of
https://github.com/daydreamer-json/ak-endfield-api-archive.git
synced 2026-03-22 07:12:28 +01:00
feat(archive): separate GitHub mirror upload into dedicated command
This commit is contained in:
16
src/cmd.ts
16
src/cmd.ts
@@ -42,6 +42,22 @@ async function parseCommand() {
|
||||
},
|
||||
wrapHandler(cmds.archive),
|
||||
)
|
||||
.command(
|
||||
['ghMirrorUpload'],
|
||||
'Upload pending large binary file to GitHub mirror',
|
||||
(yargs) => {
|
||||
yargs.options({
|
||||
'output-dir': {
|
||||
alias: ['o'],
|
||||
desc: 'Output root directory',
|
||||
default: path.resolve('output'),
|
||||
normalize: true,
|
||||
type: 'string',
|
||||
},
|
||||
});
|
||||
},
|
||||
wrapHandler(cmds.ghMirrorUpload),
|
||||
)
|
||||
.command(
|
||||
['authTest [token] [email] [password]'],
|
||||
'Auth and gacha fetch test command',
|
||||
|
||||
Reference in New Issue
Block a user