boomzero / quicksubmit

a simple way to submit code to XMOJ in your terminal
https://jsr.io/@boomzero/quicksubmit
GNU General Public License v3.0
2 stars 0 forks source link
cli collaborate deno online-judge xmoj

quickSubmit

Deno Publish

Submit Code to XMOJ.

a neat demo image

quickStart

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>"
}

Building

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.ts

The 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.ts

Usage

Usage: 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