Skip to content
/ waff Public

CLI tool for submitting solutions and participating in contests in `toaster` testing system.

Notifications You must be signed in to change notification settings

summer-54/waff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

waff - Toaster command line interface

Instance tree

_./
|_ .waff/
'|_ contest.json
 |_ tasks/
 '|_ A/
  '|_ info.json/
   |_ statements/
   '|_ ru.md (supported only it) 
    |_ en.tex 
   ,|_ eo.txt
   |_ samples/
   '|_ 1.in
    |_ 1.out
    |_ 2.in
   ,|_ 3.in
? ,|_ files/
  |_...

.tost/contest.json

{
    "id": {
        "contest": <contest-id : i32>,
        "group": <group-id : i32>
    }
    "tasks": [..., "<Litera>",...],
}

.tost/tasks/{litera}/info.json

{
    "name": "<task name : str>",
    "id": "<task id : i32>",
    "litera": "<task Litera : str>",
    "time_limit": <time limit : f32 [sec]>,
    "memory_limit": <memory limit : u64 [MB]>,
}

waff_daemon

TOKEN='<token>' ./waff-daemon

Important

Use only single quotes ', to prevent replacing $smth substrings in token with enviroment variables.

Tip

You can use -z to start background process

waff

Warning

waff_daemon need to be already started

waff <new | check | submit> ..
waff new [{group-id}:]{contest-id}
waff check {task-litera} {binary-file}
waff submit {task-litera} {code-file} [{language}]

Compilation from source

cargo build --release
cp target/release/{waff,waff-daemon} ~/.local/bin/

About

CLI tool for submitting solutions and participating in contests in `toaster` testing system.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages