Add Delete command
This commit is contained in:
parent
598ed89f71
commit
ac1f2b4cc9
|
@ -61,9 +61,13 @@ def cgiadd(name,cmd):
|
|||
db.commit()
|
||||
db.close()
|
||||
click.echo("Please test your cgi")
|
||||
|
||||
@cli.command()
|
||||
@click.argument("name")
|
||||
def luserdel(name):
|
||||
pass
|
||||
db = sqlite3.connect(DBNAME)
|
||||
c = db.cursor()
|
||||
c.execute(delete_sqls, (name))
|
||||
click.echo("entry deleted")
|
||||
|
||||
|
||||
cli.add_command(luseradd)
|
||||
|
|
Loading…
Reference in New Issue