dedingusify (delete a file i accientilly made)
This commit is contained in:
parent
da523b9644
commit
8760b79ff2
20
main.py!
20
main.py!
|
@ -1,20 +0,0 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
initDirectory = os.path.dirname(os.path.realpath(__file__))
|
||||
currentDirectory = initDirectory
|
||||
version = "0.0.1"
|
||||
|
||||
def grabArgument(fullCommand, commandRan):
|
||||
fullCommand.replace(commandRan, "")
|
||||
|
||||
while True:
|
||||
command = input(currentDirectory + " > ")
|
||||
if command == "pwd":
|
||||
print(currentDirectory)
|
||||
elif command == ("cat", *):
|
||||
grabArgument(command, cat )
|
||||
elif command == "version":
|
||||
print(version)
|
||||
else:
|
||||
subprocess.run(command)
|
Loading…
Reference in New Issue
Block a user