Skip to content

Commit

Permalink
Merge pull request #28 from hashmap-kz/feature/cmdpackage
Browse files Browse the repository at this point in the history
cmdpackage - simplify cmd directory
  • Loading branch information
hashmap-kz authored Jan 10, 2025
2 parents 1a76047 + 4c96509 commit 20d76f9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 275 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before:

builds:
- id: kubectl-envsubst
main: ./cmd/kubectl-envsubst.go
main: ./cmd/kubectl-envsubst
binary: kubectl-envsubst
ldflags:
- -s -w
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ all: build
# Build the binary (GOARCH=amd64 GOOS=linux; -o $(BINARY))
.PHONY: build
build: $(SOURCES)
CGO_ENABLED=0 go build -ldflags="-s -w" ./cmd/$(BINARY).go
CGO_ENABLED=0 go build -ldflags="-s -w" ./cmd/kubectl-envsubst

# Install the binary to /usr/local/bin
.PHONY: install
Expand Down Expand Up @@ -47,7 +47,7 @@ kind-teardown:
.PHONY: test-integration
test-integration: install kind-setup
KUBECTL_ENVSUBST_INTEGRATION_TESTS_AVAILABLE=0xcafebabe go test -v integration/*.go
KUBECTL_ENVSUBST_INTEGRATION_TESTS_AVAILABLE=0xcafebabe go test -v cmd/app/*.go
KUBECTL_ENVSUBST_INTEGRATION_TESTS_AVAILABLE=0xcafebabe go test -v cmd/kubectl-envsubst/*.go
$(MAKE) kind-teardown

# Lint the code
Expand Down
147 changes: 0 additions & 147 deletions cmd/app/app.go

This file was deleted.

109 changes: 0 additions & 109 deletions cmd/app/app_test.go

This file was deleted.

16 changes: 0 additions & 16 deletions cmd/kubectl-envsubst.go

This file was deleted.

0 comments on commit 20d76f9

Please sign in to comment.