Add a global Reset func

So we can do some benchmarking.
This commit is contained in:
Bjørn Erik Pedersen committed 2016-09-06 18:32:21 +03:00
1 parent dc3618abcd
commit 09ed41be71
1 file changed
+1 -1
+1 -1
View 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
}