-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.toml.example
More file actions
40 lines (33 loc) · 1.42 KB
/
settings.toml.example
File metadata and controls
40 lines (33 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version = "0.2"
problems_dir = "./problems"
[problem]
# The default language of the solutions. Should be the file extension for that language.
# You can switch the language to use by passing the `--lang` flag.
#
# e.g. cpp, py, java, etc.
default_lang = "cpp"
default_generator_lang = "py"
# Each [problem.solution.<lang>] section defines the commands to run for that language.
# <lang> corresponds to the file extension for that language.
# problem.solution.<lang>.compile_command
#
# Command to run when compiling a problem to generate test outputs or run tests.
#
# - `@in_file` is the verbatim argument for the name of the solution file to compile.
# This is determined automatically when the command is run.
# - `@bin_file` is the verbatim argument for the name of the compiled solution binary.
#
# e.g. compile_command = ["g++", "-Wall", "-std=c++20", "-O2", "@in_file", "-o", "@bin_file"]
# problem.solution.<lang>.run_command
#
# Command to run when running a solution file that is a compiled executable or a script.
#
# - `@bin_file` is the placeholder string for the name of the compiled solution binary to run.
# - `@script_file` is the placeholder string for the name of the script to run.
#
# e.g. run_command = ["@bin_file"]
[problem.solution.cpp]
compile_command = ["g++", "-Wall", "-std=c++20", "-O2", "@in_file", "-o", "@bin_file"]
run_command = ["@bin_file"]
[problem.solution.py]
run_command = ["python3", "@script_file"]