aboutsummaryrefslogtreecommitdiff
path: root/src/vgstash_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/vgstash_cli.py')
-rw-r--r--src/vgstash_cli.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vgstash_cli.py b/src/vgstash_cli.py
index 39d2454..f88187c 100644
--- a/src/vgstash_cli.py
+++ b/src/vgstash_cli.py
@@ -129,3 +129,13 @@ def list_games(filter, raw, width):
else:
row_format(r, width, first_pass)
first_pass = False
+
+
+@cli.command('delete')
+@click.argument('title', required=True)
+@click.argument('system', required=True)
+def delete_game(title, system):
+ db = get_db()
+ target_game = vgstash.Game(title, system)
+ if db.delete_game(target_game):
+ click.echo("Removed {} for {} from your collection.".format(title, system))