Contributing
Contributions to Capsailer are welcome! This page provides guidelines for contributing to the project.
Getting Started
Fork and Clone the Repository
- Fork the repository on GitHub
- Clone your fork:
- Set up the development environment
- Make your changes
- Submit a pull request
Development Environment
To set up a development environment:
# Clone the repository
git clone https://github.com/capsailer/capsailer-cli.git
cd capsailer
# Install dependencies
go mod download
# Build the binary
go build -o capsailer cmd/capsailer/main.go
Code Style
Please follow these code style guidelines:
- Use
gofmtto format your code - Write comments for exported functions and types
- Follow the Go Code Review Comments
- Add tests for new functionality
Testing
Before submitting a pull request, make sure your changes pass all tests:
Pull Requests
When submitting a pull request:
- Make sure your code passes all tests
- Update documentation if necessary
- Add a clear description of the changes
- Reference any related issues
Issues
When reporting issues, please include:
- A clear description of the problem
- Steps to reproduce the issue
- Expected behavior
- Actual behavior
- Version information (Go version, OS, etc.)
Feature Requests
Feature requests are welcome. Please provide:
- A clear description of the feature
- Use cases for the feature
- Any relevant examples or mockups
License
By contributing to Capsailer, you agree that your contributions will be licensed under the project's Apache License 2.0.