From 42166a2c4eb8083f9218900e7b23d3c0837059c1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 19 Aug 2024 17:16:34 +0200 Subject: [PATCH] docstring/util/browse,cat --- spcd/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spcd/util.py b/spcd/util.py index 8f460e8..962d6fe 100644 --- a/spcd/util.py +++ b/spcd/util.py @@ -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)