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:
@ -56,7 +56,7 @@ var Hugo *hugolib.HugoSites
|
|||||||
// Reset resets Hugo ready for a new full build. This is mainly only useful
|
// Reset resets Hugo ready for a new full build. This is mainly only useful
|
||||||
// for benchmark testing etc. via the CLI commands.
|
// for benchmark testing etc. via the CLI commands.
|
||||||
func Reset() error {
|
func Reset() error {
|
||||||
MainSite = nil
|
Hugo = nil
|
||||||
viper.Reset()
|
viper.Reset()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user