Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boomzero/quicksubmit

a simple way to submit code to XMOJ in your terminal
https://github.com/boomzero/quicksubmit

cli collaborate deno online-judge xmoj

Last synced: 4 months ago
JSON representation

a simple way to submit code to XMOJ in your terminal

Awesome Lists containing this project

README

        

# quickSubmit

[![Deno](https://github.com/boomzero/quicksubmit/actions/workflows/deno.yml/badge.svg)](https://github.com/boomzero/quicksubmit/actions/workflows/deno.yml)
[![Publish](https://github.com/boomzero/quicksubmit/actions/workflows/publish.yml/badge.svg)](https://github.com/boomzero/quicksubmit/actions/workflows/publish.yml)

Submit Code to XMOJ.

a neat demo
image

## quickStart

You can get binaries from the
[release page](https://github.com/boomzero/quicksubmit/releases). You need to
put `quicksubmit.json` in your home directory. It should look something like
this:

```json
{
"username": "",
"password": ""
}
```

## Building

This is a [deno](https://deno.com/) project. You should have deno installed. You
can install it from
[here](https://docs.deno.com/runtime/manual/getting_started/installation). After
that, you can build it using:

```bash
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`:

```bash
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 Problem id to submit to. If --cid is set, this can also be the id of the problem in the contest.
-c, --cid Contest to submit to (default: "-1")
-c --config Path to config file
-O, --O2 Whether to enable O2 (default: true)
-h, --help display help for command
```