chore(cmd): move main file to cmd directory

This commit is contained in:
Tom Neuber 2024-07-30 21:20:54 +02:00
parent 0c093bb5c9
commit 6813428489
Signed by: tom
GPG key ID: F17EFE4272D89FF6

19
cmd/main.go Normal file
View file

@ -0,0 +1,19 @@
package main
import (
"os"
"git.ar21.de/yolokube/grafana-backuper/internal/cmd"
"git.ar21.de/yolokube/grafana-backuper/internal/config"
)
func main() {
cfg := &config.Config{}
rootCmd := cmd.NewRootCommand(cfg)
rootCmd.AddCommand(cmd.NewBackupCommand(cfg))
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}