ref: 059e8458d690dbb9fcd3ebd58cfc61b062d3138e
parent: ab82a27d055c3aa177821d81a45a5c6e972aa29e
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Jan 6 05:37:04 EST 2018
Fix hugo benchmark --renderToMemory Fixes #4218
--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -48,7 +48,11 @@
}
func benchmark(cmd *cobra.Command, args []string) error {
- c, err := InitializeConfig(false, nil, benchmarkCmd)
+ cfgInit := func(c *commandeer) error {
+ c.Set("renderToMemory", renderToMemory)
+ return nil
+ }
+ c, err := InitializeConfig(false, cfgInit, benchmarkCmd)
if err != nil {
return err
}