Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/generated.rs
Original file line number Diff line number Diff line change
@@ -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 {}
}
8 changes: 8 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down Expand Up @@ -2865,6 +2866,8 @@ enum Commands {
#[command(subcommand)]
action: WorkflowActions,
},
#[command(flatten)]
Generated(generated::GeneratedCommand),
}

// ---- Extensions ----
Expand Down Expand Up @@ -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()?;
Expand Down