INNER CODE UNIT · Go
update
welovemedia/ffmate · cmd/update.go:29
func update(_ *cobra.Command, _ []string) {
server, err := goyave.New(goyave.Options{
Config: config.LoadDefault(),
})
if err != nil {
panic(err)
}
// register update service
svc := updateSvc.NewService(viper.GetString("app.version"))
server.RegisterService(svc)
res, _, err := svc.CheckForUpdate(false, viper.GetBool("dry"))
if err != nil {
fmt.Println(err)
os.Exit(1)
} else {