MCPcopy
hub / github.com/spicetify/cli / InitConfig

Function InitConfig

src/cmd/cmd.go:42–51  ·  view source on GitHub ↗

InitConfig gets and parses config file.

(isQuiet bool)

Source from the content-addressed store, hash-verified

40
41// InitConfig gets and parses config file.
42func 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

Callers 1

initFunction · 0.92

Calls 3

ParseConfigFunction · 0.92
GetConfigPathFunction · 0.85
GetSectionMethod · 0.65

Tested by

no test coverage detected