start work on cat

This commit is contained in:
Maxwell 2024-07-03 12:12:07 +10:00
parent c7049880ab
commit 61f64cd0a1

View File

@ -9,7 +9,9 @@ while True:
command = input(currentDirectory + " > ") command = input(currentDirectory + " > ")
if command == "pwd": if command == "pwd":
print(currentDirectory) print(currentDirectory)
elif command == "cat *":
print("You ran cat")
elif command == "version": elif command == "version":
print(version) print(version)
else: else:
subprocess.run(command) subprocess.run(command)