diff --git a/Makefile b/Makefile index c01f7ae..41bd46f 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ run: debug: @echo your version of go must be greater than 2.10. Your version is ${GOVERSION} go build -ldflags "-X main.GITCOMMIT=${GITCOMMIT} -X main.GOVERSION='${GOVERSION}' -X main.BUILDTIME='${BUILDTIME}'" - ./cloud-control-panel --debugging + ./cloud-control-panel --debug nogui: go build @@ -44,7 +44,7 @@ update: go get -v -t -u . # make the json config file human readable -json-readable: +json-make-readable: cat ~/.config/cloud-control-panel.json |jq -r --tab json-restore: diff --git a/main.go b/main.go index 13cfa71..bee9820 100644 --- a/main.go +++ b/main.go @@ -110,6 +110,7 @@ func main() { // use this to discover what the OS thinks it's hostname is // seems to be cross platform (?) + // Windows: WMIC computersystem where caption='current_pc_name' rename new_pc_name hostname := fqdn.Get() log.Println("fqdn.Get() = ", hostname) gui.Data.Hostname = hostname