bash-on-atcoder

Crates.iobash-on-atcoder
lib.rsbash-on-atcoder
version0.1.0
sourcesrc
created_at2020-10-22 07:45:27.960705
updated_at2020-10-22 07:45:27.960705
descriptionRun Bash scripts on AtCoder.
homepage
repositoryhttps://github.com/qryxip/bash-on-atcoder
max_upload_size
id304185
size53,540
Ryo Yamashita (qryxip)

documentation

README

bash-on-atcoder

CI Crates.io Crates.io

Run Bash scripts on AtCoder.

❯ envchain atcoder bash-on-atcoder 'ls -l /imojudge' --short
[INFO] GET https://atcoder.jp/login
[INFO] 200
[INFO] POST https://atcoder.jp/login
[INFO] 302
[INFO] GET https://atcoder.jp/settings
[INFO] 200
[INFO] GET https://atcoder.jp/contests/practice/custom_test
[INFO] 200
[INFO] POST https://atcoder.jp/contests/practice/custom_test/submit/json
[INFO] 200
[INFO] GET https://atcoder.jp/contests/practice/custom_test/json
[INFO] 200
[INFO] Result.Status = 1
[INFO] Waiting 2s...
[INFO] GET https://atcoder.jp/contests/practice/custom_test/json
[INFO] 200
[INFO] Result.Status = 3
total 20
drwxr-xr-x 3 contestant contestant 4096 Apr  1  2020 csharp
drwxr-xr-x 3 contestant contestant 4096 Apr  1  2020 fsharp
drwxr-xr-x 4 contestant contestant 4096 Apr  1  2020 rust
drwxr-xr-x 1 contestant contestant 4096 Apr  1  2020 sandbox
drwxr-xr-x 3 contestant contestant 4096 Apr  1  2020 visualbasic
❯ envchain atcoder bash-on-atcoder 'cat /imojudge/rust/Cargo.lock' > ./cargo-lock.toml
[INFO] GET https://atcoder.jp/login
[INFO] 200
[INFO] POST https://atcoder.jp/login
[INFO] 302
[INFO] GET https://atcoder.jp/settings
[INFO] 200
[INFO] GET https://atcoder.jp/contests/practice/custom_test
[INFO] 200
[INFO] POST https://atcoder.jp/contests/practice/custom_test/submit/json
[INFO] 200
[INFO] GET https://atcoder.jp/contests/practice/custom_test/json
[INFO] 200
[INFO] Result.Status = 1
[INFO] Waiting 2s...
[INFO] GET https://atcoder.jp/contests/practice/custom_test/json
[INFO] 200
[INFO] Result.Status = 3
[INFO] POST https://atcoder.jp/contests/practice/custom_test/submit/json
[INFO] 200
[INFO] GET https://atcoder.jp/contests/practice/custom_test/json
[INFO] 200
[INFO] Result.Status = 1
[INFO] Waiting 2s...
[INFO] GET https://atcoder.jp/contests/practice/custom_test/json
[INFO] 200
[INFO] Result.Status = 3
...
[INFO] POST https://atcoder.jp/contests/practice/custom_test/submit/json
[INFO] 200
[INFO] GET https://atcoder.jp/contests/practice/custom_test/json
[INFO] 200
[INFO] Result.Status = 1
[INFO] Waiting 2s...
[INFO] GET https://atcoder.jp/contests/practice/custom_test/json
[INFO] 200
[INFO] Result.Status = 3
❯ ll ./cargo-lock.toml
.rw-r--r-- 15k ryo ryo 2020-10-22 14:13 -N ./cargo-lock.toml

Installation

Crates.io

❯ cargo install bash-on-atcoder

master

❯ cargo install --git https://github.com/qryxip/bash-on-atcoder

GitHub Releases

Releases

License

Licensed under CC0-1.0.

Commit count: 7

cargo fmt