Coder Social home page Coder Social logo

dominik-korsa / satori-cli Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 34 KB

Command line program to submit solutions on code testing platform Satori written in Rust

Home Page: https://crates.io/crates/satori-cli

License: MIT License

Rust 100.00%
cli rust satori uj submit

satori-cli's Introduction

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.

satori-cli's People

Contributors

dominik-korsa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.