Skip to content

Commit 054ded2

Browse files
ctrongithub-actions[bot]
authored andcommitted
docs: document "sample data" switch and function
(cherry picked from commit b9dfe4f)
1 parent a8cf727 commit 054ded2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

server/src/profile/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub struct Run {
4242
#[arg(long, env)]
4343
pub devmode: bool,
4444

45+
/// Inject example importer configurations during startup
4546
#[arg(long, env)]
4647
pub sample_data: bool,
4748

server/src/sample_data.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ async fn add_quay(
170170
.await
171171
}
172172

173+
/// Insert example importers, ignoring existing ones
173174
pub async fn sample_data(db: trustify_common::db::Database) -> anyhow::Result<()> {
174175
let importer = ImporterService::new(db);
175176

0 commit comments

Comments
 (0)