mash/main.py
2024-07-03 12:12:07 +10:00

18 lines
411 B
Python

import os
import subprocess
initDirectory = os.path.dirname(os.path.realpath(__file__))
currentDirectory = initDirectory
version = "0.0.1"
while True:
command = input(currentDirectory + " > ")
if command == "pwd":
print(currentDirectory)
elif command == "cat *":
print("You ran cat")
elif command == "version":
print(version)
else:
subprocess.run(command)