forked from prefeitura-rio/idcli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
41 lines (32 loc) · 735 Bytes
/
Copy pathjustfile
File metadata and controls
41 lines (32 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# List available commands
default:
@just --list
# Build the CLI
build:
go build -o idcli
# Run the CLI
run: build
./idcli --config config.yaml
# Clean build artifacts
clean:
rm -f idcli
# Install dependencies
deps:
go mod tidy
# Format code
fmt:
go fmt ./...
# Run linter
lint:
go vet ./...
# Run tests
test:
go test ./...
# Build for multiple platforms
build-all: clean
GOOS=linux GOARCH=amd64 go build -o idcli-linux-amd64
GOOS=darwin GOARCH=amd64 go build -o idcli-darwin-amd64
GOOS=darwin GOARCH=arm64 go build -o idcli-darwin-arm64
GOOS=windows GOARCH=amd64 go build -o idcli-windows-amd64.exe
# Development workflow: format, lint, test, and build
dev: fmt lint test build