This commit is contained in:
Marc Beninca 2024-06-09 21:00:01 +02:00
parent 736e4fccb9
commit 71f2370dad
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -71,14 +71,14 @@ def browse(root: str) -> None:
absolute_path = Path(directory) / file
relative_path = os.path.relpath(absolute_path, start=root)
paths.append(relative_path)
open(root)
frame(root)
for path in sorted(paths):
print(path)
shut(root)
def cat(file: str) -> None:
open(file)
frame(file)
print(fs.read_file_text(file).rstrip())
shut(file)
@ -124,7 +124,7 @@ def set_ssh(*arguments: str) -> None:
cat(known)
def open(*arguments: str) -> None:
def frame(*arguments: str) -> None:
print(env.CD_OPEN, end="")
print(*arguments, flush=True)