Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "mdns-proxy", Short: "Go Build Tempmlate.", Args: cobra.NoArgs, PersistentPreRun: func(cmd *cobra.Command, args []string) { if forceColor { color.NoColor = false } cmd.SetContext(log.SetLoggerValue( cmd.Context(), cmd.OutOrStderr(), logLevelStr, ExitFunc, )) }, Run: func(cmd *cobra.Command, args []string) { logger := log.GetLogger(cmd.Context()) if err := cmd.Help(); err != nil { logger.Fatal(err) } }, }
View Source
var ExitFunc func(int) = func(code int) { os.Exit(code) }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.