diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-09 17:20:18 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-11 09:48:55 +0200 |
commit | 1157fef85908ea54883fe0dba6adc4861ba02162 (patch) | |
tree | b219679fd16bb7d804bc72e90c039727fe9adb76 /commands/commandeer.go | |
parent | e614d8a57c2ff5eef9270d51fcc6518398d7ff88 (diff) |
commands: Start of flag cleaning
See #4598
Diffstat (limited to 'commands/commandeer.go')
-rw-r--r-- | commands/commandeer.go | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go index a5b35f769..7d053f249 100644 --- a/commands/commandeer.go +++ b/commands/commandeer.go @@ -143,42 +143,8 @@ func (c *commandeer) loadConfig(running bool) error { initializeFlags(cmdV, cfg) } - if baseURL != "" { - cfg.Set("baseURL", baseURL) - } - - if len(disableKinds) > 0 { - cfg.Set("disableKinds", disableKinds) - } - - cfg.Set("logI18nWarnings", logI18nWarnings) - - if theme != "" { - cfg.Set("theme", theme) - } - - if themesDir != "" { - cfg.Set("themesDir", themesDir) - } - - if destination != "" { - cfg.Set("publishDir", destination) - } - cfg.Set("workingDir", dir) - if contentDir != "" { - cfg.Set("contentDir", contentDir) - } - - if layoutDir != "" { - cfg.Set("layoutDir", layoutDir) - } - - if cacheDir != "" { - cfg.Set("cacheDir", cacheDir) - } - return nil } @@ -244,7 +210,7 @@ func (c *commandeer) loadConfig(running bool) error { return err } - cacheDir = config.GetString("cacheDir") + cacheDir := config.GetString("cacheDir") if cacheDir != "" { if helpers.FilePathSeparator != cacheDir[len(cacheDir)-1:] { cacheDir = cacheDir + helpers.FilePathSeparator |