aboutsummaryrefslogtreecommitdiff
path: root/src/cli/mod.rs
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-18 13:42:52 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-18 13:42:52 -0600
commitacf79a306797b1b12e95415c340792d7c88815ab (patch)
treee2c34c6620e0782e31278c087f5ce201606ce9c0 /src/cli/mod.rs
parent7969e3a85dcb2d936fa2e09b4253b8e801c48c6e (diff)
downloadtosin-acf79a306797b1b12e95415c340792d7c88815ab.tar.gz
tosin-acf79a306797b1b12e95415c340792d7c88815ab.zip
lay groundwork for make-migrations
Diffstat (limited to 'src/cli/mod.rs')
-rw-r--r--src/cli/mod.rs3
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),
}