use crate::cli::commands;
use crate::cli::error::{CliResult, ErrorFactory};
use crate::commands::run_secrets;
use crate::logging::log_error;
pub async fn handle_secrets(cmd: commands::SecretsCmd, debug: bool) -> CliResult<()> {
if let Err(e) = run_secrets(cmd, debug).await {
let _ = log_error("secrets", "Secrets command failed", Some(&e)).await;
return Err(ErrorFactory::operation(
"secrets",
"run secrets workflow",
e,
Some("Use `xbp secrets --help` and verify repo/token configuration."),
));
}
Ok(())
}