This commit is contained in:
nicksherron 2020-02-10 01:54:50 -05:00
parent 7b16271dbe
commit d9c3ab243f
3 changed files with 4 additions and 2 deletions

View file

@ -39,6 +39,7 @@ var rootCmd = &cobra.Command{
internal.Run()
},
}
// Execute runs root command
func Execute() {
if err := rootCmd.Execute(); err != nil {

View file

@ -27,7 +27,7 @@ import (
// versionCmd represents the version command
var (
GitCommit string
GitCommit string
BuildDate string
Version string
OsArch = fmt.Sprintf("%s %s", runtime.GOOS, runtime.GOARCH)

View file

@ -82,7 +82,7 @@ type System struct {
var (
// Addr is the listen and server address for our server (gin)
Addr string
Addr string
// LogFile is the log file location for http logging. Default is stderr.
LogFile string
)
@ -109,6 +109,7 @@ func loggerWithFormatterWriter(f gin.LogFormatter) gin.HandlerFunc {
Output: getLog(),
})
}
// Run starts server
func Run() {
// Initialize backend