Refactor du projet réduire le nombre de packages et sous-dossiers #200

Merged
vlbeaudoin merged 15 commits from vlbeaudoin/rework/single-package into main 2024-08-22 13:42:33 -04:00 AGit
2 changed files with 4 additions and 7 deletions
Showing only changes of commit 1c2220337c - Show all commits

7
cmd.go
View file

@ -17,7 +17,6 @@ import (
"codeberg.org/vlbeaudoin/pave/v2"
"codeberg.org/vlbeaudoin/serpents"
"git.agecem.com/agecem/agecem-org/media"
"git.agecem.com/agecem/agecem-org/public"
"git.agecem.com/agecem/agecem-org/templates"
"git.agecem.com/agecem/agecem-org/version"
@ -127,10 +126,10 @@ var serverCmd = &cobra.Command{
log.Fatal(err)
}
mediaClient, err := media.NewMediaClientFromViper()
mediaClient, err := NewMediaClientFromViper()
switch err != nil {
case true:
log.Printf("media.NewMediaClientFromViper error: %s", err)
log.Printf("NewMediaClientFromViper error: %s", err)
case false:
new_buckets, err := mediaClient.Seed()
if err != nil {
@ -279,7 +278,7 @@ func RunServer() {
}
// API Routes
mediaClient, err := media.NewMediaClientFromViper()
mediaClient, err := NewMediaClientFromViper()
if err != nil {
log.Fatal("Error during NewMediaClientFromViper for API handlers")
}

View file

@ -1,7 +1,5 @@
package main
import "git.agecem.com/agecem/agecem-org/cmd"
func main() {
cmd.Execute()
Execute()
}