diff options
author | Mark Rosemaker <48681726+MarkRosemaker@users.noreply.github.com> | 2020-02-13 02:37:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 02:37:49 +0300 |
commit | 8a5124d6b38156cb6f765ac7492513ac7c0d90b2 (patch) | |
tree | f518f5f4fb844d8feed63a44792ccb77b17871d2 /commands/hugo.go | |
parent | 898a0a96afd472fad8fe70be71f6cb00a4267c4a (diff) |
commands: Rename doWithCommandeer to cfgInit/cfgSetAndInit
This will make it clearer what it does and make the code more consistent.
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index b2b0981a9..4f7faaae4 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -118,9 +118,9 @@ func Execute(args []string) Response { func initializeConfig(mustHaveConfigFile, running bool, h *hugoBuilderCommon, f flagsToConfigHandler, - doWithCommandeer func(c *commandeer) error) (*commandeer, error) { + cfgInit func(c *commandeer) error) (*commandeer, error) { - c, err := newCommandeer(mustHaveConfigFile, running, h, f, doWithCommandeer) + c, err := newCommandeer(mustHaveConfigFile, running, h, f, cfgInit) if err != nil { return nil, err } |