diff --git a/server/src/profile/api.rs b/server/src/profile/api.rs index 0f0b8874b..efee4915a 100644 --- a/server/src/profile/api.rs +++ b/server/src/profile/api.rs @@ -42,6 +42,7 @@ pub struct Run { #[arg(long, env)] pub devmode: bool, + /// Inject example importer configurations during startup #[arg(long, env)] pub sample_data: bool, diff --git a/server/src/sample_data.rs b/server/src/sample_data.rs index 852d88bfa..eea500a53 100644 --- a/server/src/sample_data.rs +++ b/server/src/sample_data.rs @@ -170,6 +170,7 @@ async fn add_quay( .await } +/// Insert example importers, ignoring existing ones pub async fn sample_data(db: trustify_common::db::Database) -> anyhow::Result<()> { let importer = ImporterService::new(db);