frame
This commit is contained in:
parent
736e4fccb9
commit
71f2370dad
1 changed files with 3 additions and 3 deletions
|
@ -71,14 +71,14 @@ def browse(root: str) -> None:
|
||||||
absolute_path = Path(directory) / file
|
absolute_path = Path(directory) / file
|
||||||
relative_path = os.path.relpath(absolute_path, start=root)
|
relative_path = os.path.relpath(absolute_path, start=root)
|
||||||
paths.append(relative_path)
|
paths.append(relative_path)
|
||||||
open(root)
|
frame(root)
|
||||||
for path in sorted(paths):
|
for path in sorted(paths):
|
||||||
print(path)
|
print(path)
|
||||||
shut(root)
|
shut(root)
|
||||||
|
|
||||||
|
|
||||||
def cat(file: str) -> None:
|
def cat(file: str) -> None:
|
||||||
open(file)
|
frame(file)
|
||||||
print(fs.read_file_text(file).rstrip())
|
print(fs.read_file_text(file).rstrip())
|
||||||
shut(file)
|
shut(file)
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ def set_ssh(*arguments: str) -> None:
|
||||||
cat(known)
|
cat(known)
|
||||||
|
|
||||||
|
|
||||||
def open(*arguments: str) -> None:
|
def frame(*arguments: str) -> None:
|
||||||
print(env.CD_OPEN, end="")
|
print(env.CD_OPEN, end="")
|
||||||
print(*arguments, flush=True)
|
print(*arguments, flush=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue