summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/main.go b/main.go
index 68f6073..00e0a85 100644
--- a/main.go
+++ b/main.go
@@ -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)
}