{"id":24131994,"url":"https://github.com/travelist/aoj-cli","last_synced_at":"2025-09-19T01:32:28.198Z","repository":{"id":57572209,"uuid":"247171932","full_name":"travelist/aoj-cli","owner":"travelist","description":"A command-line tool for Aizu Online Judge (AOJ)","archived":false,"fork":false,"pushed_at":"2020-05-26T07:20:02.000Z","size":6638,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T10:22:48.955Z","etag":null,"topics":["aoj","cli","tool"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/travelist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-13T22:28:09.000Z","updated_at":"2024-04-26T23:11:59.000Z","dependencies_parsed_at":"2022-08-24T05:31:57.075Z","dependency_job_id":null,"html_url":"https://github.com/travelist/aoj-cli","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travelist%2Faoj-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travelist%2Faoj-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travelist%2Faoj-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travelist%2Faoj-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travelist","download_url":"https://codeload.github.com/travelist/aoj-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233540098,"owners_count":18691360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aoj","cli","tool"],"created_at":"2025-01-11T21:32:27.842Z","updated_at":"2025-09-19T01:32:22.598Z","avatar_url":"https://github.com/travelist.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AOJ CLI [![CircleCI](https://circleci.com/gh/travelist/aoj-cli.svg?style=svg)](https://circleci.com/gh/travelist/aoj-cli)\n\n[\u003cp dir='rtl' align=\"right;\"\u003e日本語(Japanese)\u003c/p\u003e](https://github.com/travelist/aoj-cli/#%E6%97%A5%E6%9C%AC%E8%AA%9Ejapanese)\n\nA command-line tool for [Aizu Online Judge (AOJ)](https://onlinejudge.u-aizu.ac.jp/)\n\nThis is a minimal CLI tool for just doing 3 things:\n\n- Create a project directory with a boilerplate code and test cases\n- Test your solution with the test cases\n- Submit the solution to AOJ\n\n\u003cimg src=\"https://raw.githubusercontent.com/travelist/aoj-cli/master/doc/animation.gif\"\u003e\n\n## Installation\n\n```shell\nbrew tap travelist/homebrew-aoj-cli\nbrew install aoj\n```\n\n## Usage\n\nInitialize configuration (Required only once)\n\n```shell\naoj init\n```\n\nGenerate a boilerplate code and test cases\n\n```shell\naoj gen [PROBLEM-ID]\n```\n\nTest the solution\n\n```shell\n# cd ./[PROBLEM-ID]\naoj test\n```\n\nSubmit a source code\n\n```shell\naoj submit\n```\n\n## Configuration\n\nDefault config file path: `~/.aoj-cli/config.toml`\nDefault template file path: `~/.aoj-cli/template.txt`\n\n```toml\n[gen]\ntemplate_file = \"$HOME/.aoj-cli/template.txt\"\ndestination_file_name = \"main.cpp\"\n\n[test]\nbefore_all=\"g++ main.cpp -o a.out\"\nbefore_each=\"\"\ncommand=\"a.out\"\nafter_each=\"\"\nafter_all=\"\"\n\n[submit]\nlanguage = \"C++\"\nsource_file_name = \"main.cpp\"\n```\n\n| parameter| description |  |\n|----------|-------------|--|\n| gen.template_file | path to a template file | |\n| gen.destination_file_name | file name of a generated code | |\n| test.before_all | command to be executed once before all tests | |\n| test.before_each | command to be executed before each test | |\n| test.test_commands | command to execute a solution | |\n| test.after_each | command to be executed after each test | |\n| test.after_all | command to be executed once after all tests | |\n| submit.language | programming language | ex: `JAVA`, `C++` |\n| submit.source_file_name | source file to be submitted | |\n\n## TODO\n\n- [ ] `TLE` Check\n\n---\n\n# 日本語(Japanese)\n\nAOJ 用のコマンドラインツールです。主に以下のことができます:\n\n- テストサンプルのダウンロードと、ディレクトリの作成\n- プログラムのテスト\n- プログラムの提出\n\n## インストール\n\n```shell\nbrew tap travelist/homebrew-aoj-cli\nbrew install aoj\n```\n\n## 利用方法\n\nAOJ CLI の設定 (初回のみ実行)\n\n```shell\naoj init\n```\n\nテストサンプルのダウンロードとディレクトリの作成\n\n```shell\naoj gen [PROBLEM-ID]\n```\n\nソースコードのテスト\n\n```shell\n# cd ./[PROBLEM-ID]\naoj test\n```\n\nソースコードの提出\n\n```shell\naoj submit\n```\n\n## Configuration\n\nデフォルトの設定ファイル: `~/.aoj-cli/config.toml`\nデフォルトのテンプレートファイル: `~/.aoj-cli/template.txt`\n\n```toml\n[gen]\ntemplate_file = \"$HOME/.aoj-cli/template.txt\"\ndestination_file_name = \"main.cpp\"\n\n[test]\nbefore_all=\"g++ main.cpp -o a.out\"\nbefore_each=\"\"\ncommand=\"a.out\"\nafter_each=\"\"\nafter_all=\"\"\n\n[submit]\nlanguage = \"C++\"\nsource_file_name = \"main.cpp\"\n```\n\n| parameter| description |  |\n|----------|-------------|--|\n| gen.template_file | テンプレートファイルへのパス | |\n| gen.destination_file_name | 生成するコードのファイル名 | |\n| test.before_all | テスト全体の前に実行するコマンド | |\n| test.before_each | 各テスト前に実行するコマンド | |\n| test.test_commands | テストで実行するコマンド | |\n| test.after_each | 各テスト後に実行するコマンド | |\n| test.after_all | すべてのテスト後に実行するコマンド | |\n| submit.language | 提出するプログラムの言語 | ex: `JAVA`, `C++` |\n| submit.source_file_name | 提出時するファイル名 | |\n\n## TODO\n\n- [ ] テスト時の `TLE` チェック\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravelist%2Faoj-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravelist%2Faoj-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravelist%2Faoj-cli/lists"}