grafana-backuper/main.go

19 lines
329 B
Go

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)
}
}