b/c...py: notify the user when reading STDIN
Notify the user when the script reads bytebeat code from STDIN
This commit is contained in:
parent
75ede327d6
commit
e7e290b2f4
@ -66,6 +66,7 @@ def rewrite_file(path: str, content: str):
|
||||
|
||||
def read_from_file_or_stdin(path: str) -> str:
|
||||
if path == "-":
|
||||
print("Reading from STDIN...", flush=True)
|
||||
return "\n".join(stdin)
|
||||
elif exists(path):
|
||||
return read_file(path)
|
||||
|
Loading…
Reference in New Issue
Block a user