feat(archive): separate GitHub mirror upload into dedicated command

This commit is contained in:
daydreamer-json
2026-03-09 17:27:32 +09:00
parent 958a5aab5f
commit 6e4fbb80a5
7 changed files with 202 additions and 85 deletions

View File

@@ -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',