Skip to content

Commit

Permalink
ref: move initConfig away from cobra Init. queue
Browse files Browse the repository at this point in the history
  • Loading branch information
HilkopterBob committed Oct 4, 2024
1 parent 82ead71 commit 5dc3834
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,13 @@ func init() {
rootCmd.AddCommand(restartCmd)
rootCmd.AddCommand(stopCmd)

// Initialize Viper config
cobra.OnInitialize(initConfig)
initConfig()
err := db.InitDB()
if err != nil {
// FIXME: error Handling
// FIXME: LOGGING!
panic(err)
}
pp.Println()
}

// generate admin for login and Setup
Expand Down

0 comments on commit 5dc3834

Please sign in to comment.