summaryrefslogtreecommitdiff
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))
7686f310447e56518d3959c0aa7d62a69c3fb789&follow=1'>add 'playlog' list filterzlg2-2/+9 2018-03-13Update helpers a bitzlg1-2/+9 2018-03-13Make VGSTASH_DB_LOCATION point to a filezlg2-21/+20 2016-11-18Remove settings from helpers.shZe Libertine Gamer1-5/+0 2016-11-15Correct phrasing in README.Ze Libertine Gamer1-4/+4 2016-11-13DerpZe Libertine Gamer1-0/+1 2016-11-03Improve error handling in shell scriptsZe Libertine Gamer4-3/+23 2016-10-24Correct run_again, add recursionZe Libertine Gamer1-0/+4 2016-10-21Add quotes to correct behavior for arglistZe Libertine Gamer1-1/+1 2016-10-14updater.sh: add recursion, error handlingZe Libertine Gamer1-43/+101 2016-10-14Correct pipe-handling behaviorZe Libertine Gamer1-1/+9 2016-10-12Clarify a method to move between platformsZe Libertine Gamer1-2/+5