Add a CLI to delete a user with it's profile information

This commit is contained in:
Frank Lanitz
2022-01-23 21:24:38 +01:00
parent dea781cc29
commit fc1681928b
3 changed files with 63 additions and 0 deletions

View File

@ -6,9 +6,19 @@ import click
from app import app
from ki.actions import seed
from ki.actions import delete_profile
@app.cli.command("seed")
@click.option("--dev", is_flag=True)
def seed_command(dev):
seed(dev)
@app.cli.command("delete", help="Delete a user profile")
@click.option(
"--profile",
help="Username of profile",
)
def delete_command(profile):
delete_profile(profile)