mirror of
https://github.com/hanzoai/cli.git
synced 2026-11-23 04:55:12 +00:00
Replace the Python setup, benchmark and dead links with the cargo build, test and clippy flow, where the tests live, how to run one, and the PR process. Fixes #12 Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
1.8 KiB
1.8 KiB
Contributing to Hanzo CLI
We welcome contributions to Hanzo CLI! Please review the following guidelines before submitting a pull request.
Code of Conduct
Please read and adhere to the Contributor Covenant Code of Conduct.
Issues and Pull Requests
- Before opening a new issue or pull request, please search existing issues to see if it has already been addressed.
- Clearly describe the problem or feature you are working on.
- Provide steps to reproduce the issue (if applicable).
- Write clear and concise commit messages.
- Pull requests should be small and focused.
- Test your changes thoroughly before submitting a pull request.
Development Workflow
-
Clone the repository:
git clone https://github.com/hanzoai/cli cd cli -
Build:
cargo build -
Test:
cargo testThis runs unit tests plus the shipped-binary tests in
tests/cli.rs(real binary, real argv and exit codes, state isolated behind--config <tempdir>). -
Lint:
cargo clippy --bin hanzo
Running a Single Test
cargo test <test_name>
cargo test --test cli <test_name>
Where Tests Live
tests/cli.rs— end-to-end tests against the real binary.- Unit tests beside the code they cover (e.g.
src/commands/product/tests.rs). crates/client/tests/contract.rs— client contract tests.
Pull Request Process
- Open an issue first for large or significant changes.
- Keep the PR small and focused; describe what changed and why.
- Run
cargo build,cargo test, andcargo clippy --bin hanzobefore submitting. - Issues and PRs are welcome at hanzoai/cli.