InitConfig gets and parses config file.
(isQuiet bool)
| 40 | |
| 41 | // InitConfig gets and parses config file. |
| 42 | func InitConfig(isQuiet bool) { |
| 43 | quiet = isQuiet |
| 44 | |
| 45 | cfg = utils.ParseConfig(GetConfigPath()) |
| 46 | settingSection = cfg.GetSection("Setting") |
| 47 | backupSection = cfg.GetSection("Backup") |
| 48 | preprocSection = cfg.GetSection("Preprocesses") |
| 49 | featureSection = cfg.GetSection("AdditionalOptions") |
| 50 | patchSection = cfg.GetSection("Patch") |
| 51 | } |
| 52 | |
| 53 | // InitPaths checks various essential paths' availabilities, |
| 54 | // tries to auto-detect them and stops spicetify when any one |
no test coverage detected