ft-sync/cmd/client/main.go
Simon Vieille 3af050caa0 add gorm
add history init/pull/push
2024-08-28 20:36:03 +02:00

28 lines
497 B
Go

package main
import (
"flag"
"fmt"
"os"
"gitnet.fr/deblan/freetube-sync/cmd/action/initcmd"
"gitnet.fr/deblan/freetube-sync/cmd/action/pullcmd"
"gitnet.fr/deblan/freetube-sync/cmd/action/watchcmd"
config "gitnet.fr/deblan/freetube-sync/config/client"
)
func main() {
config.InitConfig()
switch flag.Arg(0) {
case "init":
initcmd.Run()
case "watch":
watchcmd.Run()
case "pull":
pullcmd.Run()
default:
fmt.Print("You must pass a sub-command: init, watch")
os.Exit(1)
}
}