MCPcopy Create free account
hub / github.com/Sifchain/sifnode / parseConfigTOML

Method parseConfigTOML

tools/sifgen/node/node.go:374–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372}
373
374func (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
389func (n *Node) parseAppTOML() (common.AppTOML, error) {
390 var config common.AppTOML

Callers 1

replaceConfigTOMLMethod · 0.95

Calls 1

ConfigFilePathMethod · 0.65

Tested by

no test coverage detected