diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -11,6 +11,7 @@ import ( "path/filepath" "unicode" + "go.wit.com/dev/davecgh/spew" "go.wit.com/log" ) @@ -62,6 +63,13 @@ func main() { doUpgrade() } + if argv.Publish != nil { + if err := doPublish(); err != nil { + badExit(err) + } + okExit("") + } + if argv.Zoo != nil { if areSuperuser() { exitOnErrorRealtime([]string{"journalctl", "-n", "100", "-f", "_SYSTEMD_UNIT=zood.service"}) @@ -140,7 +148,8 @@ func dumpDebug() { return } - fmt.Println("Go Version:", bi.GoVersion) + log.Infof("%s built with Go version: %s\n", exePath, bi.GoVersion) + spew.Dump(bi) for _, dep := range bi.Deps { fmt.Printf("Dependency: %s %s\n", dep.Path, dep.Version) } |
