Update 'shell.py'

This commit is contained in:
JaydenMW 2021-02-15 04:46:21 +01:00
parent d3e22d4f0c
commit 406b0c71ba
1 changed files with 16 additions and 3 deletions

View File

@ -9,6 +9,10 @@ import getpass
# Get System Information
RAM = psutil.virtual_memory()
CPU = platform.processor()
OS = os_name = platform.system()
# Shell Version
VER = "PCLISH v0.0.3.8a"
# Command Interpretation -- This is the core of the shell
def execute_command(command):
@ -61,17 +65,22 @@ def pclish_echo():
print(txt)
def pclish_help():
print("pclish: here are the commands available
print("""pclish: here are the commands available
help: shows this page
cd: change directory
ver: displays shell version
ls: lists files in current dir")
ls: lists files in current dir
system: shows system information
mkdir: creates a directory
shtdwnsubsys: shuts down the sub system
note: you have to type mkdir by its self then it will ask for what you want to name the directory""")
def pclish_ls():
print("pclish: this feature is not yet supported")
def pclish_ver():
print("pclish: version 0.0.2a.")
print(VER)
def pclish_mkdir():
value = input("What would you like to name this new directory:\n")
@ -84,6 +93,10 @@ def pclish_system():
print(RAM)
print("CPU:")
print(CPU)
print("OS:")
print(OS)
print("Shell:")
print(VER)
def pclish_shtdwnsubsys():