mirror of https://github.com/nyancrimew/goop.git
24 lines
362 B
Go
24 lines
362 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/deletescape/goop/cmd"
|
|
"github.com/phuslu/log"
|
|
)
|
|
|
|
func main() {
|
|
if log.IsTerminal(os.Stderr.Fd()) {
|
|
log.DefaultLogger = log.Logger{
|
|
TimeFormat: "15:04:05",
|
|
Caller: 1,
|
|
Writer: &log.ConsoleWriter{
|
|
ColorOutput: true,
|
|
QuoteString: true,
|
|
EndWithMessage: true,
|
|
},
|
|
}
|
|
}
|
|
cmd.Execute()
|
|
}
|