2020-11-17 05:41:34 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"go.jolheiser.com/tmpl/cmd"
|
|
|
|
|
2021-11-02 03:22:27 +00:00
|
|
|
"github.com/rs/zerolog"
|
|
|
|
"github.com/rs/zerolog/log"
|
2020-11-17 05:41:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2021-11-02 03:22:27 +00:00
|
|
|
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
|
|
|
|
|
2020-11-17 05:41:34 +00:00
|
|
|
app := cmd.NewApp()
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
2021-11-02 03:22:27 +00:00
|
|
|
log.Fatal().Err(err).Msg("")
|
2020-11-17 05:41:34 +00:00
|
|
|
}
|
|
|
|
}
|