typedb / typedb-console

TypeDB Console: CLI for TypeDB and TypeDB Cluster
https://typedb.com
Mozilla Public License 2.0
7 stars 16 forks source link

Confirmation prompt before deleting a database #237

Open alexjpwalker opened 8 months ago

alexjpwalker commented 8 months ago

Description

There is no confirmation prompt before deleting a database, despite the fact it is one of the most destructive actions you could possibly take.

Reproducible Steps

  1. Set up Have a database.

  2. Execute

    > database list 
    production
    > database delete production
  3. Unexpected result

> database delete production
Database 'production' deleted

Expected result

> database delete production
Are you sure you want to delete the database 'production'? This action is NOT reversible. (Y / N)
> N
Database deletion cancelled.