use objectiveai_sdk::cli::command::db::kill::{Request, Response};
use crate::command::kill_helpers::kill_per_state;
use crate::context::Context;
use crate::error::Error;
pub async fn execute(ctx: &Context, request: Request) -> Result<Response, Error> {
let killed = kill_per_state(ctx, request.scope, "db").await?;
Ok(Response { killed })
}
pub mod request_schema {
use objectiveai_sdk::cli::command::db::kill as sdk;
use objectiveai_sdk::cli::command::db::kill::request_schema::{Request, Response};
use crate::context::Context;
use crate::error::Error;
pub async fn execute(_ctx: &Context, _request: Request) -> Result<Response, Error> {
Ok(objectiveai_sdk::cli::command::ResponseSchema(schemars::schema_for!(sdk::Request)))
}
}
pub mod response_schema {
use objectiveai_sdk::cli::command::db::kill as sdk;
use objectiveai_sdk::cli::command::db::kill::response_schema::{Request, Response};
use crate::context::Context;
use crate::error::Error;
pub async fn execute(_ctx: &Context, _request: Request) -> Result<Response, Error> {
Ok(objectiveai_sdk::cli::command::ResponseSchema(schemars::schema_for!(sdk::Response)))
}
}