# Contributing to `blazy`
Contributions are welcome—especially new package manager providers, catalog mappings, and parser tests!
## Adding a New Provider
1. **Register the ID:** Add your variant to `ProviderId` and `ProviderId::ALL` in `src/model.rs` (and update `as_str`, `category`, and `FromStr`).
2. **Implement `Provider`:** Create or update an adapter in `src/providers/` implementing the `Provider` trait:
- `id()`, `display_name()`, `bin_candidates()`, `capabilities()`
- `search()`, `list()`, `outdated()` (optional), and `plan()`
- `detect()` and `detect_fast()` are provided automatically by the trait using `bin_candidates()` and `version_arg()` / `parse_version()`.
3. **Register in `ProviderRegistry`:** Add the provider to `ProviderRegistry::new()` in `src/providers/mod.rs` and `BlazyConfig::default()` in `src/config.rs`.
4. **Add Tests:**
- Add unit tests for your output parsers (handling ANSI codes, empty output, and edge cases).
- Run `cargo test --locked` and verify zero compiler warnings.
## Development Workflow
```powershell
cargo test --locked
cargo run -- doctor
```