shared-context-engineering 0.3.3

Shared Context Engineering CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::borrow::Cow;

pub struct HelpCommand;

pub struct HelpTextCommand {
    pub name: String,
    pub text: String,
}

impl HelpTextCommand {
    pub fn name(&self) -> Cow<'_, str> {
        Cow::Borrowed(self.name.as_str())
    }

    pub fn execute<C>(&self, _context: &C) -> String {
        self.text.clone()
    }
}