#at-coder #contest #cli

app bash-on-atcoder

在 AtCoder 上运行 Bash 脚本

1 个不稳定版本

0.1.0 2020年10月22日

#10#at-coder

CC0 许可协议

17KB
336 代码行

bash-on-atcoder

CI Crates.io Crates.io

在 AtCoder 上运行 Bash 脚本。

 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

安装

Crates.io

 cargo install bash-on-atcoder

master

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

GitHub 发布

发布

许可协议

许可协议为 CC0-1.0

依赖项

~17–27MB
~443K SLoC