pub trait CliPort {
fn display_locks(&self, locks: Vec<crate::domain::entities::CommandLock>);
fn display_breakers(&self, breakers: Vec<crate::domain::entities::CircuitBreaker>);
fn display_health(&self, health: crate::domain::entities::HealthScore);
fn display_error(&self, error: &str);
}
pub trait HttpPort {
fn handle_acquire_lock(&self, cmd_hash: &str, pid: u32) -> Result<(), String>;
fn handle_release_lock(&self, cmd_hash: &str, pid: u32) -> Result<(), String>;
fn handle_get_lock(&self, cmd_hash: &str) -> Option<crate::domain::entities::CommandLock>;
fn handle_health_check(&self) -> crate::domain::entities::HealthScore;
}