Skip to content
Open
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
1 change: 1 addition & 0 deletions server/src/profile/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
1 change: 1 addition & 0 deletions server/src/sample_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down