👷 doin' the thing
This commit is contained in:
parent
d3595cf6b0
commit
b8a482f86c
1
.gitignore
vendored
1
.gitignore
vendored
@ -129,3 +129,4 @@ dmypy.json
|
|||||||
.pyre/
|
.pyre/
|
||||||
setup.py
|
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"
|
click = "^8.1.3"
|
||||||
rich = "^12.5.1"
|
rich = "^12.5.1"
|
||||||
markdownify = "^0.11.6"
|
markdownify = "^0.11.6"
|
||||||
|
praw = "^7.7.0"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
poetry = "^1.1.14"
|
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))
|
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():
|
def update_from_gitea():
|
||||||
"""Get the newest release from Gitea and install it."""
|
"""Get the newest release from Gitea and install it."""
|
||||||
status = Status("Checking for new release...")
|
status = Status("Checking for new release...")
|
||||||
|
Loading…
Reference in New Issue
Block a user