1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

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
}