chore(cmd): move main file to cmd directory
This commit is contained in:
parent
0c093bb5c9
commit
6813428489
1 changed files with 0 additions and 0 deletions
19
cmd/main.go
Normal file
19
cmd/main.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue