Upload files to ''

This commit is contained in:
JaydenMW 2021-04-01 22:02:16 +00:00
parent 729bc0c852
commit 712c1e33bf
1 changed files with 40 additions and 0 deletions

40
shell.py Normal file
View File

@ -0,0 +1,40 @@
# PCLISH 0.8-DEV Build 8826
# This is a dev build, for more stability get a stable version
# Configuration
PROMPT = "$ " # Change this to change how your prompt looks
VERBOSE = "false" # Change this to true for startup verbose
# Initialization
if VERBOSE == "true":
print("pclish 0.8-DEV Build 8826")
print("Loading plugins...")
print("Loading configs...")
print("Welcome to pclish")
# Plugins -- Make sure to import your plugins
# Plugins are meant to add functionality not add commands. To add a command to the shell, import the python script under the binaries section
# from <plugins.plugin> import *
# The code below is the shell's functionality, be careful here.
# The prompt
def SHOW_PROMPT():
while 1:
print(PROMPT)
CMD = input("")
SHOW_PROMPT()
# Binaries
# Import python scripts to integrate them with the shell
# from bin.file import *
from bin.oscmd import *
from bin.help import *
from bin.echo import *
# Command interpretation
os.system("bin/", + CMD + ".py")