Skip to content

Commit 4c96509

Browse files
committed
cmdpackage - simplify cmd directory
1 parent 1a76047 commit 4c96509

File tree

5 files changed

+3
-275
lines changed

5 files changed

+3
-275
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ before:
66

77
builds:
88
- id: kubectl-envsubst
9-
main: ./cmd/kubectl-envsubst.go
9+
main: ./cmd/kubectl-envsubst
1010
binary: kubectl-envsubst
1111
ldflags:
1212
- -s -w

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ all: build
1313
# Build the binary (GOARCH=amd64 GOOS=linux; -o $(BINARY))
1414
.PHONY: build
1515
build: $(SOURCES)
16-
CGO_ENABLED=0 go build -ldflags="-s -w" ./cmd/$(BINARY).go
16+
CGO_ENABLED=0 go build -ldflags="-s -w" ./cmd/kubectl-envsubst
1717

1818
# Install the binary to /usr/local/bin
1919
.PHONY: install
@@ -47,7 +47,7 @@ kind-teardown:
4747
.PHONY: test-integration
4848
test-integration: install kind-setup
4949
KUBECTL_ENVSUBST_INTEGRATION_TESTS_AVAILABLE=0xcafebabe go test -v integration/*.go
50-
KUBECTL_ENVSUBST_INTEGRATION_TESTS_AVAILABLE=0xcafebabe go test -v cmd/app/*.go
50+
KUBECTL_ENVSUBST_INTEGRATION_TESTS_AVAILABLE=0xcafebabe go test -v cmd/kubectl-envsubst/*.go
5151
$(MAKE) kind-teardown
5252

5353
# Lint the code

cmd/app/app.go

Lines changed: 0 additions & 147 deletions
This file was deleted.

cmd/app/app_test.go

Lines changed: 0 additions & 109 deletions
This file was deleted.

cmd/kubectl-envsubst.go

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)