Move CLI to own package

This commit is contained in:
Joakim Hellsén 2024-06-27 11:53:39 +02:00
commit 7a1226b232
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
12 changed files with 273 additions and 179 deletions

15
cli/grab_links.py Normal file
View file

@ -0,0 +1,15 @@
from rich import print
from app.scrapers.rss_link_database import scrape
from cli.cli import app
@app.command(
name="grab_links",
help="Grab RSS feeds from different sources.",
)
def grab_links() -> None:
"""Grab RSS feeds from different sources."""
print("Grabbing links...")
rss_links: str = scrape()
print(rss_links)