2022-08-23 17:04:13 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"go.jolheiser.com/git-ea/cmd"
|
|
|
|
|
|
|
|
"github.com/rs/zerolog"
|
|
|
|
"github.com/rs/zerolog/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
|
|
|
|
|
2022-09-03 21:58:02 +00:00
|
|
|
c, err := cmd.New()
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal().Err(err).Msg("could not initialize command")
|
2022-08-23 17:04:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if err := c.ParseAndRun(context.Background(), os.Args[1:]); err != nil {
|
|
|
|
log.Err(err).Msg("")
|
|
|
|
}
|
|
|
|
}
|