Config constructor

Config(
  1. String raw
)

Implementation

Config(String raw) {
  configFile = ConfigFile.parse(raw);
  for (var section in configFile.sections) {
    switch (section.name) {
      case 'branch':
        section.sections.forEach(_parseBranch);
        break;
      case 'remote':
        section.sections.forEach(_parseRemote);
        break;
      case 'user':
        _parseUser(section);
        break;
      case 'core':
        _parseCore(section);
        break;
    }
  }
}