feat(cli): add Gear CLI commands
Implement complete CLI interface for managing gear via brewlog CLI.
Commands (presentation/cli/gear.rs):
- add-gear: Create gear with --category, --make, --model, --notes flags
- list-gear: List all gear with optional --category filter
- get-gear: Retrieve single gear by --id
- update-gear: Update gear fields (make, model, notes)
- delete-gear: Delete gear by --id
Uses define_get_command! and define_delete_command! macros for get/delete
operations to reduce boilerplate.
Command Registration:
- Register gear module in presentation/cli/mod.rs
- Add commands to Commands enum: AddGear, ListGear, GetGear, UpdateGear, DeleteGear
- Wire command execution in main.rs
All commands output JSON and use BrewlogClient for HTTP API calls.
Examples:
brewlog add-gear --category grinder --make Baratza --model Encore
brewlog list-gear --category brewer
brewlog update-gear --id 1 --notes "Updated notes"