big overhaul of REST API, split into auth, core, and cli methods

This commit is contained in:
Nick Sweeting 2024-04-25 03:56:22 -07:00
parent e5aba0dc2e
commit 75153252dc
No known key found for this signature in database
20 changed files with 790 additions and 265 deletions

View file

@ -358,7 +358,8 @@ def chrome_cleanup():
if IN_DOCKER and lexists("/home/archivebox/.config/chromium/SingletonLock"):
remove_file("/home/archivebox/.config/chromium/SingletonLock")
def ansi_to_html(text):
@enforce_types
def ansi_to_html(text: str) -> str:
"""
Based on: https://stackoverflow.com/questions/19212665/python-converting-ansi-color-codes-to-html
"""