CLI for cats. Currently only for jury
git clone https://github.com/FooBarrior/cats-cli
pip install -r requirements.txt
ln -s ~+/cats.py ~/.local/bin/cats
cats url
cats command [url]
url with sid, cid and (cpid or download) currently should be passed at least once to work
This means, you can use either problem text url, or problem package url.
commands are:
init initialize empty git repository
sync update existing problem
add add new problem
login relogin if session is over
Creating new task:
$ cats init 'mail.pl?f=problems;sid=314;cid=1592'
$ git commit problem.xml -m 'initial problem setting'
# trying to do this without modifications of problem.xml will result in problem reject,
# because xml dummy needs manual edition
$ cats add
Altering existing task:
$ cats init 'mail.pl?f=problems;sid=314;cid=1592;cpid=6535'
# edit problem package
$ git commit -m 'edit problem'
$ cats sync