wip
This commit is contained in:
11
cmd/root.go
11
cmd/root.go
@@ -1,10 +1,10 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"budget/ginserver"
|
||||
"budget/handler"
|
||||
"budget/internal/utils"
|
||||
"fmt"
|
||||
"nos-comptes/ginserver"
|
||||
"nos-comptes/handler"
|
||||
"nos-comptes/internal/utils"
|
||||
"os"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -34,8 +34,8 @@ var (
|
||||
)
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "nos-comptes",
|
||||
Short: "nos-comptes",
|
||||
Use: "budget",
|
||||
Short: "budget",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
utils.InitLogger(config.LogLevel, config.LogFormat)
|
||||
logrus.
|
||||
@@ -46,7 +46,6 @@ var rootCmd = &cobra.Command{
|
||||
WithField(parameterPort, config.Port).
|
||||
WithField(parameterDBConnectionURI, config.DBConnectionURI).
|
||||
Warn("Configuration")
|
||||
|
||||
router := ginserver.NewRouter(config)
|
||||
router.Run(fmt.Sprintf(":%d", config.Port))
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user