reddit-support #1
3
.gitignore
vendored
3
.gitignore
vendored
@ -128,4 +128,5 @@ dmypy.json
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
setup.py
|
||||
utils
|
||||
utils
|
||||
praw.ini
|
||||
|
2270
poetry.lock
generated
2270
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
|
10
src/cli.py
10
src/cli.py
@ -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...")
|
||||
|
Loading…
Reference in New Issue
Block a user