From 52f7ee09908b0c1d2cb6d1cecf897df9c39a112e Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 16 Mar 2024 05:46:14 +0100 Subject: [PATCH] feat: faker cmd for fake test entities --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index 09942a63..c4dff7f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,6 +30,9 @@ enum CliCommand { /// apply database migrations Migrate, + + /// generate fake user, note and activity + Faker, } #[tokio::main] @@ -55,6 +58,9 @@ async fn main() { CliCommand::Migrate => migrations::Migrator::up(&db, None) .await.expect("error applying migrations"), + + CliCommand::Faker => model::faker(&db) + .await.expect("error creating fake entities"), } }