/quicksubmit

a simple way to submit code to XMOJ in your terminal

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

quickSubmit

Submit Code to XMOJ.

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

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