2019-05-22 11:05:23 -05:00
|
|
|
GOVER = $(shell go version)
|
|
|
|
|
2019-05-09 08:52:51 -05:00
|
|
|
run:
|
2019-05-22 11:05:23 -05:00
|
|
|
@echo your version of go must be greater than 2.10. Your version is ${GOVER}
|
2019-05-09 08:52:51 -05:00
|
|
|
go build
|
|
|
|
./cloud-control-panel
|
2019-05-06 02:32:46 -05:00
|
|
|
|
2019-05-13 11:05:03 -05:00
|
|
|
debug:
|
|
|
|
go build
|
|
|
|
./cloud-control-panel --debugging
|
|
|
|
|
2019-05-09 09:00:38 -05:00
|
|
|
nogui:
|
|
|
|
go build
|
|
|
|
./cloud-control-panel -nogui
|
|
|
|
|
2019-05-06 02:32:46 -05:00
|
|
|
gaper:
|
2019-02-01 07:28:17 -06:00
|
|
|
# 'gaper' is a simple and smart golang tool that just rebuilds every time you change a file
|
|
|
|
# go get -u github.com/maxcnunes/gaper
|
|
|
|
gaper
|
|
|
|
|
2019-05-08 17:29:06 -05:00
|
|
|
#### NEVER DO THIS. THIS APPEARS TO INDUCE INSTABILITY IN GTK
|
2019-05-09 08:52:51 -05:00
|
|
|
bad-run:
|
2019-05-08 17:29:06 -05:00
|
|
|
#### NEVER DO THIS. THIS APPEARS TO INDUCE INSTABILITY IN GTK
|
|
|
|
# go run *.go
|
|
|
|
|
2019-02-01 07:28:17 -06:00
|
|
|
# simple sortcut to push all git changes
|
|
|
|
push:
|
|
|
|
git pull
|
|
|
|
git add --all
|
|
|
|
-git commit -a -s
|
2019-05-11 09:53:32 -05:00
|
|
|
git push --all
|
|
|
|
git push --tags
|
2019-02-01 07:28:17 -06:00
|
|
|
|
|
|
|
# should update every go dependancy (?)
|
|
|
|
update:
|
|
|
|
git pull
|
2019-05-21 20:00:45 -05:00
|
|
|
go get -v -t -u .
|
2019-05-07 07:40:07 -05:00
|
|
|
|
|
|
|
# make the json config file human readable
|
|
|
|
json-readable:
|
|
|
|
cat /tmp/cloud-control-panel.json |jq -r --tab
|
2019-05-10 03:45:10 -05:00
|
|
|
|
|
|
|
diff:
|
|
|
|
git diff
|
2019-05-15 17:32:40 -05:00
|
|
|
|
|
|
|
# https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04
|
|
|
|
build-darwin:
|
|
|
|
env GOOS=darwin GOARCH=amd64 go build
|
|
|
|
|
|
|
|
build-windows:
|
|
|
|
env GOOS=windows GOARCH=amd64 go build
|