Skip to content

Commit 3d8d366

Browse files
committed
Remove language id and update docs
1 parent 37cd780 commit 3d8d366

File tree

9 files changed

+259
-918
lines changed

9 files changed

+259
-918
lines changed

CONFIG.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# 設定
22

3-
設定に必須な情報はcontest_dir, source_file_path, need_to_compile, execute_command,
4-
(language_id または language_name)です.
3+
設定に必須な情報はcontest_dir, source_file_path, need_to_compile, execute_commandです.
54

65
| 項目 | 説明 |
76
| --- | --- |
87
| contest_dir | ac-ninjaを実行するディレクトリです.<br> {{contesty_type}},{{contest_id}}を特定できる必要があります. |
9-
| source_file_path | ac-ninjaで提出するファイルのパスです. |
8+
| source_file_path | ソースファイルのパスです. |
109
| need_to_compile | プログラムの実行にコンパイルが必要かどうかを指定します.<br> trueの場合, {{compile_command}}を指定する必要があります. |
1110
| execute_command | プログラムを実行するためのコマンドです. |
12-
| language_id | ac-ninjaでの提出に用いる言語のidです.<br> AtCoderの提出セレクトボックスをディベロッパーツールから見ることで<br> 確認できますが, [早見表](./LANG_ID.md)が便利です. |
13-
| language_name | language_idの代わりに, language_nameを指定することができます.<br> AtCoderの提出言語セレクトボックスの表示の通りに指定してください.<br> \"C++(GCC 9.2.1)\", \"Python (3.8.2)\", \"Rust (1.42.0)\"など.<br> こちらも, [早見表](./LANG_ID.md)の文字列をコピペすると便利です. |
1411

1512
ファイルパスや, 実行コマンドには{{変数}}を含むことができます.
1613

@@ -38,7 +35,6 @@ output_file_path = "{{contest_dir}}/a.out"
3835
source_file_path = "{{contest_dir}}/{{problem_id}}.cpp"
3936
compile_command = "g++ {{source_file_path}} -std=c++17 -o {{output_file_path}}"
4037
execute_command = "{{output_file_path}}"
41-
language_id = 5001 # language_nameの場合 "C++ 20 (gcc 12.2)"
4238
```
4339

4440
以下はPythonでの設定例です
@@ -49,6 +45,4 @@ need_to_compile = false
4945
contest_dir = "{{work_space}}/{{CONTEST_TYPE}}/{{contest_id_0_pad}}"
5046
source_file_path = "{{contest_dir}}/{{problem_id}}/main.py"
5147
execute_command = "python3 {{source_file_path}}"
52-
language_name = "Python (CPython 3.11.4)" # language_idの場合 5055
5348
```
54-

Cargo.lock

Lines changed: 3 additions & 182 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ regex = "1.7.1"
2020
clap = { version = "4.1.8", features = ["derive"] }
2121
reqwest = { version = "0.11.14", features = ["cookies", "json"] }
2222
dialoguer = "0.10.3"
23-
indicatif = "0.17.3"
24-
chrono = "0.4.23"
2523
time = "0.3.36"

0 commit comments

Comments
 (0)