vgret: update to use non-deprecated toml parse functions
parent
b978f609b3
commit
0de91767c1
|
|
@ -354,7 +354,11 @@ fn vexe() string {
|
|||
}
|
||||
|
||||
fn new_config(root_path string, toml_config string) ?Config {
|
||||
doc := toml.parse(toml_config) ?
|
||||
doc := if os.is_file(toml_config) {
|
||||
toml.parse_file(toml_config) ?
|
||||
} else {
|
||||
toml.parse_text(toml_config) ?
|
||||
}
|
||||
|
||||
path := os.real_path(root_path).trim_right('/')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue