Development
Prerequisites
- Go 1.19 or later
- Make (optional, for using Makefile targets)
Getting Started
git clone https://github.com/umbertocicciaa/chatgpt-cli.git
cd chatgpt-cli
go mod download
Building
go build -v ./...
Testing
go test -v ./...
Linting
golangci-lint run
Project Structure
chatgpt-cli/
├── main.go # Application entry point
├── main_test.go # Tests
├── go.mod # Go module definition
├── Makefile # Build automation
├── docs/ # Documentation (MkDocs)
└── mkdocs.yml # MkDocs configuration
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature)
- Commit your changes (
git commit -am 'Add my feature')
- Push to the branch (
git push origin feature/my-feature)
- Open a Pull Request