Makefile
mod:
rm go.mod || true && \
rm go.sum || true && \
go mod init github.com/aceberg/LinuxExecBot && \
go mod tidy
run:
cd cmd/LinuxExecBot/ && \
go run . -c /data/LinuxExecBot/config.yaml
fmt:
go fmt ./...
lint:
golangci-lint run
golint ./...
check: fmt lint
go-build:
cd cmd/LinuxExecBot/ && \
CGO_ENABLED=0 go build -o ../../tmp/LinuxExecBot .
brun: go-build
cd tmp && \
./LinuxExecBot -c /data/LinuxExecBot/config.yaml