shared-context-engineering 0.3.0

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

pub struct HooksCommand {
    pub subcommand: hooks::HookSubcommand,
}

impl HooksCommand {
    pub fn execute<C: HasLogger>(&self, context: &C) -> Result<String, ClassifiedError> {
        hooks::run_hooks_subcommand(&self.subcommand, Some(context.logger()))
            .map_err(|error| ClassifiedError::runtime(format!("{error:#}")))
    }
}