mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 23:02:05 -05:00
parent
ab82a27d05
commit
059e8458d6
1 changed files with 5 additions and 1 deletions
|
@ -48,7 +48,11 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func benchmark(cmd *cobra.Command, args []string) error {
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue