objectiveai-cli 2.0.11

ObjectiveAI command-line interface and embeddable library
1
2
3
4
5
6
7
8
9
10
/// `objectiveai mcp kill` — terminate every running `objectiveai-mcp`
/// process. Idempotent: a count of zero is not an error.
pub async fn handle(
    _cli_config: &crate::Config,
    handle: &objectiveai_sdk::cli::output::Handle,
) -> Result<(), crate::error::Error> {
    let count = crate::spawn::kill_by_name("objectiveai-mcp");
    crate::config::emit_value(&count, handle).await;
    Ok(())
}