Crates.io | bash-on-atcoder |
lib.rs | bash-on-atcoder |
version | 0.1.0 |
source | src |
created_at | 2020-10-22 07:45:27.960705 |
updated_at | 2020-10-22 07:45:27.960705 |
description | Run Bash scripts on AtCoder. |
homepage | |
repository | https://github.com/qryxip/bash-on-atcoder |
max_upload_size | |
id | 304185 |
size | 53,540 |
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
❯ cargo install bash-on-atcoder
master
❯ cargo install --git https://github.com/qryxip/bash-on-atcoder
Licensed under CC0-1.0.