Add Go and .NET client libraries for GitCaddy AI Service with usage examples. Include Business Source License 1.1, Makefile for build automation, and comprehensive README. Update service configuration and all service classes to support new client integration.
92 lines
2.0 KiB
Makefile
92 lines
2.0 KiB
Makefile
# GitCaddy AI Service Makefile
|
|
# Copyright 2026 MarketAlly. All rights reserved.
|
|
|
|
.PHONY: all build run test clean docker proto
|
|
|
|
# Default target
|
|
all: build
|
|
|
|
# Build the service
|
|
build:
|
|
dotnet build GitCaddy.AI.sln -c Release
|
|
|
|
# Run the service in development mode
|
|
run:
|
|
cd src/GitCaddy.AI.Service && dotnet run
|
|
|
|
# Run tests
|
|
test:
|
|
dotnet test GitCaddy.AI.sln
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
dotnet clean GitCaddy.AI.sln
|
|
rm -rf src/*/bin src/*/obj
|
|
rm -rf go/gitcaddy-ai-client/proto/*.pb.go
|
|
|
|
# Build Docker image
|
|
docker:
|
|
docker build -t gitcaddy/gitcaddy-ai:latest .
|
|
|
|
# Run with Docker Compose
|
|
docker-up:
|
|
docker-compose up -d
|
|
|
|
# Stop Docker Compose
|
|
docker-down:
|
|
docker-compose down
|
|
|
|
# Generate Go protobuf files
|
|
proto:
|
|
cd go/gitcaddy-ai-client && go generate
|
|
|
|
# Install development dependencies
|
|
deps:
|
|
dotnet restore GitCaddy.AI.sln
|
|
cd go/gitcaddy-ai-client && go mod download
|
|
|
|
# Format code
|
|
fmt:
|
|
dotnet format GitCaddy.AI.sln
|
|
cd go/gitcaddy-ai-client && go fmt ./...
|
|
|
|
# Lint code
|
|
lint:
|
|
dotnet format GitCaddy.AI.sln --verify-no-changes
|
|
cd go/gitcaddy-ai-client && go vet ./...
|
|
|
|
# Run example (dotnet)
|
|
example-dotnet:
|
|
cd examples/dotnet && dotnet run
|
|
|
|
# Run example (go)
|
|
example-go:
|
|
cd examples/go && go run main.go
|
|
|
|
# Create a release
|
|
release:
|
|
@echo "Creating release..."
|
|
dotnet publish src/GitCaddy.AI.Service/GitCaddy.AI.Service.csproj -c Release -o dist/
|
|
@echo "Release created in dist/"
|
|
|
|
# Show help
|
|
help:
|
|
@echo "GitCaddy AI Service"
|
|
@echo ""
|
|
@echo "Usage: make [target]"
|
|
@echo ""
|
|
@echo "Targets:"
|
|
@echo " build Build the service"
|
|
@echo " run Run the service in development mode"
|
|
@echo " test Run tests"
|
|
@echo " clean Clean build artifacts"
|
|
@echo " docker Build Docker image"
|
|
@echo " docker-up Start with Docker Compose"
|
|
@echo " docker-down Stop Docker Compose"
|
|
@echo " proto Generate Go protobuf files"
|
|
@echo " deps Install dependencies"
|
|
@echo " fmt Format code"
|
|
@echo " lint Lint code"
|
|
@echo " release Create release artifacts"
|
|
@echo " help Show this help"
|