日本語(Japanese)
A command-line tool for Aizu Online Judge (AOJ)
This is a minimal CLI tool for just doing 3 things:
- Create a project directory with a boilerplate code and test cases
- Test your solution with the test cases
- Submit the solution to AOJ
brew tap travelist/homebrew-aoj-cli
brew install aojInitialize configuration (Required only once)
aoj initGenerate a boilerplate code and test cases
aoj gen [PROBLEM-ID]Test the solution
# cd ./[PROBLEM-ID]
aoj testSubmit a source code
aoj submitDefault config file path: ~/.aoj-cli/config.toml
Default template file path: ~/.aoj-cli/template.txt
[gen]
template_file = "$HOME/.aoj-cli/template.txt"
destination_file_name = "main.cpp"
[test]
before_all="g++ main.cpp -o a.out"
before_each=""
command="a.out"
after_each=""
after_all=""
[submit]
language = "C++"
source_file_name = "main.cpp"| parameter | description | |
|---|---|---|
| gen.template_file | path to a template file | |
| gen.destination_file_name | file name of a generated code | |
| test.before_all | command to be executed once before all tests | |
| test.before_each | command to be executed before each test | |
| test.test_commands | command to execute a solution | |
| test.after_each | command to be executed after each test | |
| test.after_all | command to be executed once after all tests | |
| submit.language | programming language | ex: JAVA, C++ |
| submit.source_file_name | source file to be submitted |
-
TLECheck
AOJ 用のコマンドラインツールです。主に以下のことができます:
- テストサンプルのダウンロードと、ディレクトリの作成
- プログラムのテスト
- プログラムの提出
brew tap travelist/homebrew-aoj-cli
brew install aojAOJ CLI の設定 (初回のみ実行)
aoj initテストサンプルのダウンロードとディレクトリの作成
aoj gen [PROBLEM-ID]ソースコードのテスト
# cd ./[PROBLEM-ID]
aoj testソースコードの提出
aoj submitデフォルトの設定ファイル: ~/.aoj-cli/config.toml
デフォルトのテンプレートファイル: ~/.aoj-cli/template.txt
[gen]
template_file = "$HOME/.aoj-cli/template.txt"
destination_file_name = "main.cpp"
[test]
before_all="g++ main.cpp -o a.out"
before_each=""
command="a.out"
after_each=""
after_all=""
[submit]
language = "C++"
source_file_name = "main.cpp"| parameter | description | |
|---|---|---|
| gen.template_file | テンプレートファイルへのパス | |
| gen.destination_file_name | 生成するコードのファイル名 | |
| test.before_all | テスト全体の前に実行するコマンド | |
| test.before_each | 各テスト前に実行するコマンド | |
| test.test_commands | テストで実行するコマンド | |
| test.after_each | 各テスト後に実行するコマンド | |
| test.after_all | すべてのテスト後に実行するコマンド | |
| submit.language | 提出するプログラムの言語 | ex: JAVA, C++ |
| submit.source_file_name | 提出時するファイル名 |
- テスト時の
TLEチェック
