adept/adept.go
Gregory Ballantine 1ccd481f9e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
Refactored a bit to put the configuration and logging setup before Cobra launches, so it doesn't need to be handled in every sub-command
2022-09-15 10:09:10 -04:00

22 lines
419 B
Go

package main
import (
"git.metaunix.net/BitGoblin/adept/cmd"
"git.metaunix.net/BitGoblin/adept/config"
)
// start the app - that's where all the good stuff happens
func main() {
// load configuration via Viper
config.LoadConfig()
// configure our app logging
logHandle := config.InitLogging()
if logHandle != nil {
defer logHandle.Close()
}
// launch the Cobra CLI framework
cmd.Execute()
}