Submit Code to XMOJ.
You can get binaries from the
release page. You need to
put quicksubmit.json in your home directory. It should look something like
this:
{
"username": "<your username>",
"password": "<your password>"
}This is a deno project. You should have deno installed. You can install it from here. After that, you can build it using:
deno compile -A -c tsconfig.json index.tsThe binaries will be called quickSubmit(.exe).
Update: It turns out bun fixed the issue that caused me to switch to deno,
and bun works now. Compile using bun:
bun build --compile --outfile qsm ./index.tsUsage: quicksubmit [options] [file]
Submit code to XMOJ.
Arguments:
file File to submit (default: "main.cpp")
Options:
-p, --pid <number> Problem id to submit to. If --cid is set, this can also be the id of the problem in the contest.
-c, --cid <number> Contest to submit to (default: "-1")
-c --config Path to config file
-O, --O2 <boolean> Whether to enable O2 (default: true)
-h, --help display help for command