INNER CODE UNIT · Go

init

welovemedia/ffmate · cmd/update.go:22

func init() {
	rootCmd.AddCommand(updateCmd)

	updateCmd.Flags().BoolVar(&dry, "dry", false, "run in dry mode (no real update)")
	_ = viper.BindPFlag("dry", updateCmd.Flags().Lookup("dry"))
}

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…