Initial commit: Go project with greet function and CLI

This commit is contained in:
Gabriel Radureau
2026-04-03 12:20:55 +02:00
commit 3efc1992d5
7 changed files with 201 additions and 0 deletions

55
AGENTS.md Normal file
View File

@@ -0,0 +1,55 @@
# AGENTS.md
This file documents the AI agents and tools used in this project.
## Project Initialization
- **Agent**: Mistral Vibe CLI Agent
- **Version**: devstral-2
- **Date**: 2024-04-03
## Tasks Completed
1. **Go Environment Setup**
- Verified Go installation
- Upgraded to Go 1.26.1
- Verified version compatibility
2. **Project Structure**
- Created idiomatic Go project layout
- Initialized go.mod with module name
- Set up cmd/ and pkg/ directories
3. **Core Implementation**
- Implemented Greet() function in pkg/greet/
- Added default behavior for empty names
- Created comprehensive unit tests
4. **CLI Implementation**
- Built command-line interface in cmd/greet/
- Implemented argument parsing
- Integrated with core library
5. **Documentation**
- Created README.md with usage instructions
- Added .gitignore for standard exclusions
- Generated this AGENTS.md file
## Tools Used
- Go 1.26.1
- Standard library only
- No external dependencies
## Testing
All tests pass:
```bash
go test ./...
```
## Verification
CLI tested with:
- No arguments: `go run ./cmd/greet` → "Hello world!"
- With argument: `go run ./cmd/greet John` → "Hello John!"