Skip to content

Commit

Permalink
Update terminal.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellShibilski-Unkel authored Apr 18, 2024
1 parent d686f4e commit bbef6cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/terminal/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ def run(self, cmd: str):
print(os.system(f"python {breakDown[1]}"))
elif breakDown[0] in "compile":
print(os.system(f"gcc {breakDown[1]} -o {breakDown[2]}\n"))
elif breakDown[0] in "clone":
print(os.system(f"gh repo clone {breakDown[1]}\n"))
elif breakDown[0] in "help" or breakDown[0] in "-h":
print("Command Name\tFunction\tCommand\nr\tRead\tr [FILE]\nw\tWrite\tw [FILE]\nf\tFind\tf [FILE]\ncompile\tGCC Compiler\tcompile [FILE] [EXE NAME]\nprint\tEcho\tprint [MESSAGE]\nget\tInstaller\tget [-py *OPTIONAL] [NAME]\nupdate\tUpdater\tupdate [NAME]\nremove\tUninstaller\tremove [NAME]\n")
print("Command Name\tFunction\tCommand\nr\tRead\tr [FILE]\nw\tWrite\tw [FILE]\nf\tFind\tf [FILE]\ncompile\tGCC Compiler\tcompile [FILE] [EXE NAME]\nprint\tEcho\tprint [MESSAGE]\nget\tInstaller\tget [-py *OPTIONAL] [NAME]\nupdate\tUpdater\tupdate [NAME]\nremove\tUninstaller\tremove [NAME]\nclone\tGitHub Repo Cloner\tclone [REPO]\n")
else:
print("CMD ERROR (1) :: Command Does Not Exist\n")

Expand All @@ -46,4 +48,4 @@ def __count__(self, x: list):
for x2 in x:
count += 1

return count
return count

0 comments on commit bbef6cb

Please sign in to comment.