shared-context-engineering 0.3.3

Shared Context Engineering CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::app::ContextWithRepoRoot;
use crate::services::doctor;
use crate::services::error::ClassifiedError;

pub struct DoctorCommand {
    pub request: doctor::DoctorRequest,
}

impl DoctorCommand {
    pub fn execute<C: ContextWithRepoRoot>(&self, context: &C) -> Result<String, ClassifiedError> {
        doctor::run_doctor_with_context(self.request, context)
            .map_err(|error| ClassifiedError::runtime(format!("{error:#}")))
    }
}