Skip to content

Commit 336e733

Browse files
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.
1 parent 72c42ba commit 336e733

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main.rs

-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct Opts {
2323
enum 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()

0 commit comments

Comments
 (0)