|
@@ -54,11 +54,12 @@ func main() {
|
|
|
|
|
|
// prepare staticmd with dependencies & defaults
|
|
// prepare staticmd with dependencies & defaults
|
|
staticmd := Staticmd{
|
|
staticmd := Staticmd{
|
|
- Logger: log.Logger{Level: log.Error},
|
|
|
|
|
|
+ Logger: log.Logger{Severity: log.Error},
|
|
Version: version(),
|
|
Version: version(),
|
|
Input: cwd,
|
|
Input: cwd,
|
|
Output: filepath.Join(cwd, "public/"),
|
|
Output: filepath.Join(cwd, "public/"),
|
|
}
|
|
}
|
|
|
|
+ staticmd.Logger.Color()
|
|
|
|
|
|
// optimize concurrent processing
|
|
// optimize concurrent processing
|
|
staticmd.MaxParallelism = runtime.NumCPU()
|
|
staticmd.MaxParallelism = runtime.NumCPU()
|
|
@@ -96,7 +97,7 @@ func main() {
|
|
|
|
|
|
// optionally enable debugging
|
|
// optionally enable debugging
|
|
if debug, _ := maps.Bool(&flags, false, "debug"); debug {
|
|
if debug, _ := maps.Bool(&flags, false, "debug"); debug {
|
|
- staticmd.Logger.Level = log.Debug
|
|
|
|
|
|
+ staticmd.Logger.Severity = log.Debug
|
|
}
|
|
}
|
|
|
|
|
|
// optionally enable profiling
|
|
// optionally enable profiling
|