mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
commands: Remove the Hugo global
There are still some cleaning to do, but that felt good. See #4598
This commit is contained in:
parent
73825cfc1c
commit
b110d0ae04
6 changed files with 41 additions and 34 deletions
5
main.go
5
main.go
|
@ -31,9 +31,10 @@ func main() {
|
|||
os.Exit(-1)
|
||||
}
|
||||
|
||||
if commands.Hugo != nil {
|
||||
// TODO(bep) cli refactor
|
||||
/*if commands.Hugo != nil {
|
||||
if commands.Hugo.Log.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) > 0 {
|
||||
os.Exit(-1)
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue