Skip to content

Commit

Permalink
feat(CLI): Added subscriber CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
tabbott36 committed Jul 19, 2024
1 parent 41a9961 commit 4e987a6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions frbvoe/cli/subscriber.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""Subscriber CLI."""

import click

@click.group(name="subscriber", help="Subscriber Tools.")

def subscriber():
"""Manage subscribers."""
pass

@subscriber.command("add", help="Add a subscriber to the database.")
@click.option("--subscriber_name", help="Name of the subscriber.")
@click.option("--subscriber_email", help="Email address of the subscriber.")

def add(subscriber_name, subscriber_email):
"""Add subscriber."""
click.echo(f"Saved subscriber {subscriber_name} with email {subscriber_email} to the database.")

def remove(subscriber_name, subscriber_email):
"""Remove subscriber."""
click.echo(f"Removed subscriber {subscriber_name} with email {subscriber_email} from the database.")

0 comments on commit 4e987a6

Please sign in to comment.