core: add type hint for langs field

This commit is contained in:
undefined committed 2025-09-04 20:53:34 +08:00
1 parent dceaccb4d1
commit 7be14c2cdd
1 file changed
+14 -14
+14 -14
View File
@@ -32,20 +32,20 @@ langs:
- ~ Compiling be be ignored if compile option wasn't set
- ~ Key marked with a ? means the option is optional
- (name):
disabled?: whether to disable this language
hidden?: won't show in the language selection
compile?: Compile Command
code_file?: Where to write code file when compiling, defaults to `foo.[name]`
execute: Command to execute the program
highlight?: PrismJS highlight mode
monaco?: Monaco editor mode
time_limit_rate?: Time limit rate
target?: Compiler output file, defaults to `foo`
display: Display name
compile_time_limit?: Compile time limit, in milliseconds
compile_memory_limit?: Compile memory limit, in MB
address_space_limit?: Enable address space memory limit as CCF did
process_limit?: Limit the number of thread
disabled?: (boolean) whether to disable this language
hidden?: (boolean) won't show in the language selection
compile?: (string) Compile Command
code_file?: (string) Where to write code file when compiling, defaults to `foo.[name]`
execute: (string) Command to execute the program
highlight?: (string) PrismJS highlight mode
monaco?: (string) Monaco editor mode
time_limit_rate?: (number) Time limit rate
target?: (string) Compiler output file, defaults to `foo`
display: (string) Display name
compile_time_limit?: (number) Compile time limit, in milliseconds
compile_memory_limit?: (number) Compile memory limit, in MB
address_space_limit?: (boolean) Enable address space memory limit as CCF did
process_limit?: (number) Limit the number of thread
bash:
display: Bash
code_file: foo.sh