We welcome contributions to Hanzo CLI! Please review the following guidelines before submitting a pull request.
Please read and adhere to the Contributor Covenant Code of Conduct.
- 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.
-
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
cargo test <test_name>
cargo test --test cli <test_name>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.
- 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.