Add a global Reset func
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 16 Aug 2016 10:49:07 +0000 (12:49 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 6 Sep 2016 15:32:21 +0000 (18:32 +0300)
So we can do some benchmarking.

commands/hugo.go

index a8dc8778522cae81611143f8fb79601803044156..435f66af12e4500a0b21879568df279299c254c7 100644 (file)
@@ -56,7 +56,7 @@ var Hugo *hugolib.HugoSites
 // Reset resets Hugo ready for a new full build. This is mainly only useful
 // for benchmark testing etc. via the CLI commands.
 func Reset() error {
-       MainSite = nil
+       Hugo = nil
        viper.Reset()
        return nil
 }