Skip to content

Commit

Permalink
black, ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardusrendy committed Apr 27, 2024
1 parent a9e6f28 commit b64159d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions alab_management/scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,14 @@ def launch_worker_cli(ctx):
@cli.command("clean", short_help="Clean up the database")
@click.option("-a", "--all-collections", is_flag=True, default=False)
@click.option("-f", "--_force_i_know_its_dangerous", is_flag=True, default=False)
@click.option("--database_name",default="Alab_sim")
def cleanup_lab_cli(all_collections: bool, _force_i_know_its_dangerous: bool, database_name: str):
@click.option("--database_name", default="Alab_sim")
def cleanup_lab_cli(
all_collections: bool, _force_i_know_its_dangerous: bool, database_name: str
):
"""Clean up the database."""
if cleanup_lab(all_collections, _force_i_know_its_dangerous, database_name=database_name):
if cleanup_lab(
all_collections, _force_i_know_its_dangerous, database_name=database_name
):
click.echo("Done")
else:
click.echo("Stopped")
Expand Down

0 comments on commit b64159d

Please sign in to comment.