#submit #uj #command-line #cli #satori

app satori-cli

Command line program to submit solutions on code testing platform Satori

2 stable releases

1.0.1 Nov 27, 2021

#16 in #submit

21 downloads per month

MIT license

20KB
404 lines

Satori CLI

Command line program to submit solutions on the code testing platform Satori

Usage

Step 1 (you only need to do it once)

satori set-username YOUR_SATORI_USERNAME

(you can skip this step and use the SATORI_USERNAME env variable instead)

Step 2

Add a comment anywhere in the solution code, containing the problem URL, for example:

#include <iostream>
// https://satori.tcs.uj.edu.pl/contest/0123456/problems/0123456

int main() {}

Step 3

Run

satori submit solution-filename.cpp

Type your Satori password if prompted or provide it as SATORI_PASSWORD.

You can enable the --ci flag to prevent asking for password if the env variable is not specified. This is useful for scripting.

If you want to open the results page in your default web browser automatically, use the --open (-o) flag.

Note about passwords

This program doesn't store your password. Instead it stores a session token (in the form of a cookie). This is why the program might ask you for your password multiple times.

Dependencies

~12–28MB
~428K SLoC