aa3cccead5
Implements Phase 1 of v0.1 Foundation:
- go.mod with Go 1.25
- cmd/orca/main.go entry point
- internal/cli/root.go with global --json flag
- internal/cli/version.go (orca version)
- internal/cli/init.go (orca init - creates ~/.orca/)
- internal/cli/status.go (orca status - shows daemon info)
- internal/cli/node.go (orca node {join,leave,list} - stubs)
- internal/cli/job.go (orca job {run,list,stop,logs} - stubs)
- Makefile (build, test, lint, fmt, release)
- LICENSE (MIT)
- README.md with quickstart
- .gitignore
- .githooks/pre-push + scripts/trigger_coreci.sh (CoreCI trigger)
- Smoke tests in internal/cli/root_test.go
Verified: go build, go test, go vet, gofmt all pass.
---ci---
project: orca
phase: 1
milestone: v0.1
status: execute
req_covered:
- REQ-001
- REQ-002
- REQ-013
- REQ-015
- REQ-016
- REQ-019
- REQ-024
---/ci---
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
.PHONY: build test lint fmt clean run release help
|
|
|
|
BINARY := bin/orca
|
|
GOFLAGS := -trimpath
|
|
LDFLAGS := -s -w -X main.version=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev") \
|
|
-X main.gitCommit=$(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown") \
|
|
-X main.buildTime=$(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
|
|
help:
|
|
@echo "orca — make targets"
|
|
@echo " build Build binary to $(BINARY)"
|
|
@echo " test Run tests with race detection"
|
|
@echo " lint Run gofmt + go vet"
|
|
@echo " fmt Format code"
|
|
@echo " clean Remove build artifacts"
|
|
@echo " run Build and run with args (use: make run ARGS='version')"
|
|
@echo " release Build release artifact with version injection"
|
|
|
|
build:
|
|
@mkdir -p bin
|
|
go build $(GOFLAGS) -o $(BINARY) ./cmd/orca
|
|
|
|
test:
|
|
go test -race -coverprofile=coverage.out ./...
|
|
|
|
lint:
|
|
gofmt -l .
|
|
go vet ./...
|
|
|
|
fmt:
|
|
gofmt -w .
|
|
|
|
clean:
|
|
rm -rf bin coverage.out
|
|
|
|
run: build
|
|
./$(BINARY) $(ARGS)
|
|
|
|
release:
|
|
@mkdir -p bin
|
|
go build $(GOFLAGS) -ldflags="$(LDFLAGS)" -o $(BINARY) ./cmd/orca
|
|
@echo "Release build complete: $(BINARY)"
|