docstring/util/browse,cat

This commit is contained in:
Marc Beninca 2024-08-19 17:16:34 +02:00
parent 87b39b4486
commit 42166a2c4e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -14,6 +14,7 @@ def add_url_path(url: str, extra_path: str) -> str:
def browse(root: str) -> None:
"""Frame the browsing of a root directory in the log output."""
paths = []
for directory, _, files in os.walk(root):
for file in files:
@ -27,6 +28,7 @@ def browse(root: str) -> None:
def cat(file: str) -> None:
"""Frame the content of a file in the log output."""
frame(file)
log.info(fs.read_file_text(file).rstrip())
shut(file)