()
| 372 | } |
| 373 | |
| 374 | func (n *Node) parseConfigTOML() (common.ConfigTOML, error) { |
| 375 | var config common.ConfigTOML |
| 376 | |
| 377 | content, err := ioutil.ReadFile(n.CLI.ConfigFilePath()) |
| 378 | if err != nil { |
| 379 | return config, err |
| 380 | } |
| 381 | |
| 382 | if _, err := toml.Decode(string(content), &config); err != nil { |
| 383 | return config, err |
| 384 | } |
| 385 | |
| 386 | return config, nil |
| 387 | } |
| 388 | |
| 389 | func (n *Node) parseAppTOML() (common.AppTOML, error) { |
| 390 | var config common.AppTOML |
no test coverage detected