Documentation ¶
Index ¶
- Constants
- func ClearLogs()
- func Debugf(f string, v ...any)
- func Durf(msg string, d time.Duration)
- func Error(msg string)
- func Errorf(f string, v ...any)
- func FatalCmdNotAvailable(cmd, helpURL string)
- func FatalCustomWatcherCmdNotAvailable(cmd, customWatcherName string)
- func Fatalf(f string, v ...any)
- func Infof(f string, v ...any)
- func SetLogLevel(l LogLevel)
- func TemplierFileChange(e fsnotify.Event)
- func TemplierRestartingServer(cmdServerPath string)
- func TemplierStarted(baseURL string)
- func WarnUnsupportedTemplVersion(templierVersion, supportedTemplVersion, currentTemplVersion string)
- type LogLevel
Constants ¶
const LinePrefix = "🤖 "
const TimeFormat = "3:04:05.000 PM"
Variables ¶
This section is empty.
Functions ¶
func FatalCmdNotAvailable ¶ added in v0.7.4
func FatalCmdNotAvailable(cmd, helpURL string)
FatalCmdNotAvailable prints an error line to console about a cmd that's required for Templiér to run not being available and exits process with error code 1.
func FatalCustomWatcherCmdNotAvailable ¶ added in v0.7.4
func FatalCustomWatcherCmdNotAvailable(cmd, customWatcherName string)
FatalCustomWatcherCmdNotAvailable prints an error line to console about a cmd that's required for a custom watcher to run not being available and exits process with error code 1.
func SetLogLevel ¶ added in v0.6.0
func SetLogLevel(l LogLevel)
func TemplierFileChange ¶
TemplierFileChange prints a file change log to console.
func TemplierRestartingServer ¶
func TemplierRestartingServer(cmdServerPath string)
TemplierRestartingServer prints the server restart trigger log to console.
func TemplierStarted ¶
func TemplierStarted(baseURL string)
TemplierStarted prints the Templiér started log to console.
func WarnUnsupportedTemplVersion ¶ added in v0.10.0
func WarnUnsupportedTemplVersion( templierVersion, supportedTemplVersion, currentTemplVersion string, )
WarnUnsupportedTemplVersion prints a warning line to console about the currently installed templ version not matching the templ version that the installed version of Templier supports.