use clap::Subcommand;
#[derive(Subcommand)]
pub enum Commands {
Get,
}
impl Commands {
pub async fn handle(self, cli_config: &crate::Config, handle: &objectiveai_cli_sdk::output::Handle) -> Result<(), crate::error::Error> {
match self {
Commands::Get => {
#[derive(serde::Serialize)]
struct Instructions { instructions: String }
let instructions =
crate::instructions::issue(
cli_config,
crate::instructions::InstructionsScope::FunctionInventionsRecursive,
include_str!("../../../../../assets/functions/inventions/recursive/instructions/get/INSTRUCTIONS.md"),
)?;
objectiveai_cli_sdk::output::Output::<Instructions>::Notification(objectiveai_cli_sdk::output::Notification { value: Instructions { instructions } }).emit(handle).await;
Ok(())
},
}
}
}