1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Add GoReleaser configuration

This commit is contained in:
Maksym Pavlenko
2019-11-13 20:43:47 -08:00
parent 0767f97a71
commit b66cf76747
4 changed files with 76 additions and 33 deletions

View File

@@ -32,6 +32,12 @@ const banner = `
|/ (_______)(______/ \_______) \_/ |/ )_)(_______/
`
var (
version = "dev"
commit = "none"
date = "unknown"
)
func main() {
log.SetFormatter(&log.TextFormatter{
TimestampFormat: time.RFC3339,
@@ -61,6 +67,12 @@ func main() {
log.Info(banner)
}
log.WithFields(log.Fields{
"version": version,
"commit": commit,
"date": date,
}).Info("running podsync")
// Load TOML file
log.Debugf("loading configuration %q", opts.ConfigPath)
cfg, err := config.LoadConfig(opts.ConfigPath)