Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
/ atcli Public archive

Command line interface for AtCoder (unofficial)

License

Notifications You must be signed in to change notification settings

gky360/atcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atcli

Build Status Build status GoDoc

        __           ___
       /\ \__       /\_ \    __
   __  \ \ ,_\   ___\//\ \  /\_\
 /'__'\ \ \ \/  /'___\\ \ \ \/\ \
/\ \L\.\_\ \ \_/\ \__/ \_\ \_\ \ \
\ \__/.\_\\ \__\ \____\/\____\\ \_\
 \/__/\/_/ \/__/\/____/\/____/ \/_/

Command line interface for AtCoder (unofficial)

Requirements

Installation

go get -u github.com/gky360/atcli

Example usage

# Configuration
# See also https://github.com/gky360/atsrv for more details about ATSRV_AUTH_TOKEN
export ATSRV_USER_ID=your_atcoder_user_id
export ATCLI_ROOT=~/atcoder
export ATCLI_CPP_TEMPLATE_PATH=$ATCLI_ROOT/templates/Main.cpp
export ATSRV_AUTH_TOKEN=$(cat /dev/urandom | base64 | fold -w 32 | head -n 1)


# Join contest
atcli join
# Create directories for tasks
atcli clone

# Build your source code
atcli build d
# Test your source code with sample cases downloaded by `atcli clone`
atcli test d               # always build your source code
atcli test d --skip-build  # skip build if possible
atcli test d sample01      # run with a specified sample input

# Submit your source code to AtCoder
atcli submit d

# Get info from AtCoder
atcli get
atcli get contest
atcli get task [d]
atcli get submission [2167890 | -t d]

See atcli --help for more deatils.

Future work

  • fetching test cases used in judges on AtCoder -> Done in v0.1.0
  • templating your source code -> Done in v0.1.0
  • writing tests

About

Command line interface for AtCoder (unofficial)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages