fix the init order
This commit is contained in:
parent
7b0704d475
commit
b926acbb65
1 changed files with 4 additions and 5 deletions
|
|
@ -27,19 +27,18 @@ func showHelpOrVersion() {
|
|||
}
|
||||
|
||||
if config.ShowVersion {
|
||||
showVersion()
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
showHelpOrVersion()
|
||||
|
||||
showVersion()
|
||||
initConfig()
|
||||
initTemplate()
|
||||
initLogger()
|
||||
|
||||
showVersion()
|
||||
showHelpOrVersion()
|
||||
|
||||
showConfig()
|
||||
|
||||
// TODO make this pluggable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue