👷 doin' the thing

This commit is contained in:
Joe Kaufeld 2023-05-18 18:45:40 -04:00
parent d3595cf6b0
commit b8a482f86c
4 changed files with 1453 additions and 831 deletions

3
.gitignore vendored
View File

@ -128,4 +128,5 @@ dmypy.json
# Pyre type checker
.pyre/
setup.py
utils
utils
praw.ini

2270
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,7 @@ httpx = "^0.23.0"
click = "^8.1.3"
rich = "^12.5.1"
markdownify = "^0.11.6"
praw = "^7.7.0"
[tool.poetry.dev-dependencies]
poetry = "^1.1.14"

View File

@ -115,6 +115,16 @@ def beautify(words: list[str]):
click.echo("".join(new_beautiful_string))
@main.command()
def get_saved() -> None:
"""Get saved posts from reddit."""
# because 2fa is enabled, we have to get the code first
twofa_code = click.prompt("What's the current 2fa code?", type=str)
...
def update_from_gitea():
"""Get the newest release from Gitea and install it."""
status = Status("Checking for new release...")