Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/boomzero/quicksubmit
- Owner: boomzero
- License: gpl-3.0
- Created: 2023-12-23T07:55:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-17T05:31:26.000Z (6 months ago)
- Last Synced: 2024-09-17T07:30:33.293Z (5 months ago)
- Topics: cli, collaborate, deno, online-judge, xmoj
- Language: TypeScript
- Homepage: https://jsr.io/@boomzero/quicksubmit
- Size: 18.1 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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.
![]()
## 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
```