diff options
author | Pedro L. Ramos <pedrolorgaramos@tecnico.ulisboa.pt> | 2019-07-13 18:42:22 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-15 09:42:03 -0400 |
commit | d85f671bdf90dbdd725db88e5d6970630e36f9f1 (patch) | |
tree | f4cb94081d12087cc6de04dacd8a44157ccab2bb /aerc.go | |
parent | 9bf1a0418ba7fa817c4704d363bc4350ef883b59 (diff) | |
download | aerc-d85f671bdf90dbdd725db88e5d6970630e36f9f1.tar.gz |
71: Allow user to change config options at runtime
There is a LoadConf and a LoadConfFromFile.
LoadConfFromFile reads the iniFile into memory and and calls
LoadConf, which executes the old parsing commands from
LoadConf (old func).
The remaining of the LoadConfFromFile is the same as the old OldConf.
Diffstat (limited to 'aerc.go')
-rw-r--r-- | aerc.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -121,7 +121,7 @@ func main() { logger = log.New(logOut, "", log.LstdFlags) logger.Println("Starting up aerc") - conf, err := config.LoadConfig(nil, ShareDir) + conf, err := config.LoadConfigFromFile(nil, ShareDir) if err != nil { fmt.Printf("Failed to load config: %v\n", err) os.Exit(1) |