Refondre noms de package selon bonnes pratiques
This commit is contained in:
parent
5c6eed5e6b
commit
6ef8eccbef
17 changed files with 24 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
/*
|
||||
Copyright © 2023 AGECEM & Victor Lacasse-Beaudoin
|
||||
*/
|
||||
// Package cmd provides the cobra command and subcommands for the application
|
||||
package cmd
|
||||
|
||||
import (
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Reference in a new issue