From 406b0c71ba6332e978a95195eaeaa7fd7785e526 Mon Sep 17 00:00:00 2001 From: JaydenMW Date: Mon, 15 Feb 2021 04:46:21 +0100 Subject: [PATCH] Update 'shell.py' --- shell.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/shell.py b/shell.py index 30e361d..78b89c3 100644 --- a/shell.py +++ b/shell.py @@ -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():