use crate::cli::commands::RunnersCmd;
use crate::cli::error::{CliResult, ErrorFactory};
use crate::commands::run_runners;
use crate::logging::log_error;
pub async fn handle_runners(cmd: RunnersCmd, _debug: bool) -> CliResult<()> {
if let Err(error) = run_runners(&cmd).await {
let _ = log_error("runners", "Runner command failed", Some(&error)).await;
return Err(ErrorFactory::operation(
"runners",
"run runner command",
error,
Some("Check runner payloads, organization IDs, and configured API base URL."),
));
}
Ok(())
}