INNER CODE UNIT · Go

init

welovemedia/ffmate · cmd/init.go:17

func init() {
	rootCmd.PersistentFlags().StringP("debug", "d", "info:?,warn:?,error:?", "set debugo namespace (eg. '*')")
	_ = viper.BindPFlag("debug", rootCmd.PersistentFlags().Lookup("debug"))

	// setup debugo timestamp format
	debugo.SetTimestamp(&debugo.Timestamp{
		Format: "15:04:05.000",
	})
}

func Execute() {
	if err := rootCmd.Execute(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…