Réécrire le projet pour la v4 #4

Merged
vlbeaudoin merged 16 commits from breaking/v4 into main 2023-05-25 23:31:14 -04:00
2 changed files with 0 additions and 12 deletions
Showing only changes of commit 719c92a652 - Show all commits

View file

@ -75,9 +75,6 @@ var apiCmd = &cobra.Command{
client.DB.Close() client.DB.Close()
log.Println("apiPort: ", apiPort)
log.Println("apiKey: ", apiKey)
e.Logger.Fatal(e.Start(fmt.Sprintf(":%d", apiPort))) e.Logger.Fatal(e.Start(fmt.Sprintf(":%d", apiPort)))
}, },
} }

View file

@ -6,7 +6,6 @@ import (
"fmt" "fmt"
"html/template" "html/template"
"io" "io"
"log"
"git.agecem.com/agecem/bottin/v4/web" "git.agecem.com/agecem/bottin/v4/web"
"git.agecem.com/agecem/bottin/v4/web/webhandlers" "git.agecem.com/agecem/bottin/v4/web/webhandlers"
@ -74,14 +73,6 @@ var webCmd = &cobra.Command{
// Execution // Execution
fmt.Println("webPort: ", webPort)
fmt.Println("web.port: ", viper.GetInt("web.port"))
webPortFlag, err := cmd.Flags().GetInt("web-port")
if err != nil {
log.Fatal(err)
}
fmt.Println("web-port: ", webPortFlag)
e.Logger.Fatal(e.Start( e.Logger.Fatal(e.Start(
fmt.Sprintf(":%d", webPort))) fmt.Sprintf(":%d", webPort)))
}, },