diff --git a/src/generated.rs b/src/generated.rs new file mode 100644 index 00000000..4fe4a5cd --- /dev/null +++ b/src/generated.rs @@ -0,0 +1,15 @@ +// Stable integration point for openapi-transformer-generated pup commands. +// +// Future regenerations add variants to `GeneratedCommand` (and new modules +// alongside this file) in place; main.rs never needs to change again. + +use anyhow::Result; + +use crate::config::Config; + +#[derive(clap::Subcommand)] +pub enum GeneratedCommand {} + +pub async fn run(_cfg: &Config, command: GeneratedCommand) -> Result<()> { + match command {} +} diff --git a/src/main.rs b/src/main.rs index 1b431abf..09b6c923 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,7 @@ mod config; mod extensions; mod filter; mod formatter; +mod generated; #[cfg(not(target_arch = "wasm32"))] mod runbooks; #[cfg(not(target_arch = "wasm32"))] @@ -2865,6 +2866,8 @@ enum Commands { #[command(subcommand)] action: WorkflowActions, }, + #[command(flatten)] + Generated(generated::GeneratedCommand), } // ---- Extensions ---- @@ -15905,6 +15908,11 @@ async fn main_inner() -> anyhow::Result<()> { } }, }, + // --- Generated --- + Commands::Generated(action) => { + cfg.validate_auth()?; + generated::run(&cfg, action).await?; + } // --- LLM Observability --- Commands::LlmObs { action } => { cfg.validate_auth()?;