-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.") |