Add a global Reset func

So we can do some benchmarking.
This commit is contained in:
Bjørn Erik Pedersen 2016-08-16 12:49:07 +02:00
parent dc3618abcd
commit 09ed41be71

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
}