on main help sign in
Remove `remove` command from CLI

The `remove` command isn't very useful to end users and is also dangerous as it will delete all data.

commit336e73394d07c54e8a4ce8443c8450034fd505da authorfabianlindfors <fabian@flapplabs.se> dateFri 4 Feb 2022, 17:56 (5 years ago) parent72c42ba
1 file changed−5
src/main.rs−5
src/main.rs−5
@@ -23,7 +23,6 @@ struct Opts {
2323enum Command {
2424 Migrate(MigrateOptions),
2525 Complete(ConnectionOptions),
26− Remove(ConnectionOptions),
2726 Abort(ConnectionOptions),
2827 GenerateSchemaQuery(FindMigrationsOptions),
2928}
@@ -84,10 +83,6 @@ fn run(opts: Opts) -> anyhow::Result<()> {
8483 let mut reshape = reshape_from_connection_options(&opts)?;
8584 reshape.complete()
8685 }
87− Command::Remove(opts) => {
88− let mut reshape = reshape_from_connection_options(&opts)?;
89− reshape.remove()
90− }
9186 Command::Abort(opts) => {
9287 let mut reshape = reshape_from_connection_options(&opts)?;
9388 reshape.abort()