mirror of
https://github.com/MeiK2333/river.git
synced 2025-11-04 14:49:40 +08:00
Update
This commit is contained in:
parent
74bbf6432d
commit
ae37e776ab
@ -97,17 +97,7 @@ impl Config {
|
||||
Ok(config)
|
||||
}
|
||||
pub fn default() -> Result<Config> {
|
||||
let config_yaml = "
|
||||
languages:
|
||||
- language: c
|
||||
version: 7.5.0
|
||||
compile_command: /usr/bin/gcc {{filename}} -o a.out
|
||||
run_command: ./a.out
|
||||
- language: python
|
||||
version: 3.6.9
|
||||
compile_command: /usr/bin/python3 -m compileall {{filename}}
|
||||
run_command: /use/bin/python3 {{filename}}
|
||||
";
|
||||
let config_yaml = include_str!("default.yml");
|
||||
let config = Config::load_yaml(config_yaml)?;
|
||||
Ok(config)
|
||||
}
|
||||
|
||||
9
src/default.yml
Normal file
9
src/default.yml
Normal file
@ -0,0 +1,9 @@
|
||||
languages:
|
||||
- language: c
|
||||
version: 7.5.0
|
||||
compile_command: /usr/bin/gcc {{filename}} -o a.out
|
||||
run_command: ./a.out
|
||||
- language: python
|
||||
version: 3.6.9
|
||||
compile_command: /usr/bin/python3 -m compileall {{filename}}
|
||||
run_command: /use/bin/python3 {{filename}}
|
||||
Loading…
Reference in New Issue
Block a user