diff options
Diffstat (limited to 'src/cli/mod.rs')
-rw-r--r-- | src/cli/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli/mod.rs b/src/cli/mod.rs index a11fd48..851812f 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -2,11 +2,13 @@ use structopt::StructOpt; use crate::{Settings, UrlMap, db::backend::Connectable}; +mod make_migrations; mod migrate; mod run_server; #[derive(StructOpt)] enum Command { + MakeMigrations(make_migrations::MakeMigrations), Migrate(migrate::Migrate), RunServer(run_server::RunServer), } @@ -14,6 +16,7 @@ enum Command { impl Command { fn execute(self, urls: UrlMap, settings: Settings<impl Connectable>) { match self { + Command::MakeMigrations(command) => command.execute(urls, settings), Command::Migrate(command) => command.execute(urls, settings), Command::RunServer(command) => command.execute(urls, settings), } |