Refondre noms de package selon bonnes pratiques

This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-15 17:10:57 -04:00
parent 5c6eed5e6b
commit 6ef8eccbef
17 changed files with 24 additions and 6 deletions

View file

@ -18,7 +18,7 @@ var apiCmd = &cobra.Command{
Use: "api",
Short: "Start the API server",
Run: func(cmd *cobra.Command, args []string) {
cfg, err := config.GetConfig()
cfg, err := config.UnmarshalConfig()
if err != nil {
log.Fatal(err)
}

View file

@ -1,6 +1,4 @@
/*
Copyright © 2023 AGECEM & Victor Lacasse-Beaudoin
*/
// Package cmd provides the cobra command and subcommands for the application
package cmd
import (

View file

@ -18,7 +18,7 @@ var webCmd = &cobra.Command{
Use: "web",
Short: "Start the webserver",
Run: func(cmd *cobra.Command, args []string) {
cfg, err := config.GetConfig()
cfg, err := config.UnmarshalConfig()
if err != nil {
log.Fatal(err)
}