mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Add a global Reset func
So we can do some benchmarking.
This commit is contained in:
parent
dc3618abcd
commit
09ed41be71
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue