Skip to content

Commit 270418b

Browse files
committed
Add make build/run cmd
1 parent 0b58db2 commit 270418b

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ _testmain.go
4141
# Dist
4242
dist
4343
usewebhook
44+
usewebhook-cli
4445
*.tar.gz
4546

4647
# Tmp files

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ PKG = github.com/figstra/usewebhook-cli
22
VERSION ?= dev
33
LDFLAGS = -ldflags "-X 'main.Version=$(VERSION)'"
44

5+
build:
6+
go build $(LDFLAGS) -o dist/usewebhook .
7+
8+
run: build
9+
./dist/usewebhook
10+
511
deps:
612
go get ./...
713

0 commit comments

Comments
 (0)