systemprompt_cli/commands/admin/evals/
mod.rs1pub mod promote;
10mod shared;
11
12use anyhow::Result;
13use clap::Subcommand;
14
15use crate::context::CommandContext;
16use crate::shared::render_result;
17
18#[derive(Debug, Subcommand)]
19pub enum EvalsCommands {
20 #[command(about = "Promote an AI request into the golden case set")]
21 Promote(promote::PromoteArgs),
22}
23
24pub async fn execute(cmd: EvalsCommands, ctx: &CommandContext) -> Result<()> {
25 let result = match cmd {
26 EvalsCommands::Promote(args) => promote::execute(args, ctx).await?,
27 };
28 render_result(&result, &ctx.cli);
29 Ok(())
30}