Add collection option to clear_collections
MODIFY
plextraktsync/cli.py
plextraktsync/cli.py
@@ -98,6 +98,13 @@ def cache():
@command()
@click.option("--confirm", is_flag=True, help="Confirm the dangerous action")
@click.option("--dry-run", is_flag=True, help="Do not perform delete actions")
+@click.option(
+ "--collection",
+ type=click.Choice(["all", "movies", "shows"], case_sensitive=False),
+ default="all",
+ show_default=True,
+ help="Specify what type of Trakt collection to clear",
+)
def clear_collections():
"""
Clear Movies and Shows collections in Trakt

MODIFY
plextraktsync/commands/clear_collections.py
plextraktsync/commands/clear_collections.py
from plextraktsync.factory import factory, logger
-def clear_collections(confirm, dry_run):
+def clear_collections(confirm: bool, dry_run: bool, collection: str):
print = factory.print
if not confirm and not dry_run:

Add collection option to clear_collections