Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Verbosity int // TraceFile is the file to write trace logs to. // If nil (the default), trace logs are not written. TraceFile *string )
View Source
var Cmd = &cobra.Command{ Use: "encore", Short: "encore is the fastest way of developing backend applications", SilenceErrors: true, CompletionOptions: cobra.CompletionOptions{ HiddenDefaultCmd: true, }, PersistentPreRun: func(cmd *cobra.Command, args []string) { if traceFile != "" { TraceFile = &traceFile } level := zerolog.InfoLevel if Verbosity == 1 { level = zerolog.DebugLevel } else if Verbosity >= 2 { level = zerolog.TraceLevel } if Verbosity >= 1 { errlist.Verbose = true } log.Logger = log.Logger.Level(level) for _, f := range preRuns { f(cmd, args) } }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.