chore: add delete command to README

This commit is contained in:
2025-10-02 23:55:40 +05:30
parent 57f5e383a1
commit 0c8157b8d8
2 changed files with 31 additions and 0 deletions

View File

@@ -7,3 +7,29 @@ clean:
dev: dev:
go build -o ./dist/envy . go build -o ./dist/envy .
BINARY := myapp
VERSION := $(shell git describe --tags --always --dirty)
OUTPUT := dist
GOOSARCHES = \
linux/amd64 \
linux/arm64 \
darwin/amd64 \
darwin/arm64 \
windows/amd64 \
windows/arm64
prod:
@echo "==> Building version $(VERSION)"
@mkdir -p $(OUTPUT)
@for platform in $(GOOSARCHES); do \
OS=$${platform%/*}; \
ARCH=$${platform#*/}; \
EXT=""; \
if [ $$OS = "windows" ]; then EXT=".exe"; fi; \
OUTFILE=$(OUTPUT)/$(BINARY)-$(VERSION)-$$OS-$$ARCH$$EXT; \
echo " -> $$OS/$$ARCH"; \
GOOS=$$OS GOARCH=$$ARCH go build -ldflags="-s -w" -trimpath -o $$OUTFILE . || exit 1; \
done

View File

@@ -84,3 +84,8 @@ make
### envy edit ### envy edit
- Open .env file in the default editor - Open .env file in the default editor
### envy delete
- Delete a particular environment, or the entire project
- Cannot delete current environment