text: # CORE file contains main shell mechanisms
  from importlib import import_module as _import
  from time import sleep
  
  from lib.utils import *
  from lib.vfs import init
  
  
  class shell():
      def __init__(self):
          init()
  
      def __repr__(self):
          return '<Shell Instance>'
  
      def get_input(self):
          if prop.get('prompt') != NULL:
              if prop.get('prompt') == '-def':
                  sh = '@shell:' + get_path() + '> '
              else:
                  sh = prop.get('prompt') + ' '
          else:
              sh = '@shell:' + get_path() + '> '
          inp = input(sh)
          return inp
  
      def execute(self, inp):
          inp = inp.split()
          # print(inp)
          inp = make_s(replace_vars(inp))
          inp = inp.split()
          # print(inp)
          # Get hidden commands as well
          f_list = get_func_list(True)
  
          try:
              f = inp[0]
              inp.pop(0)
          except IndexError:
              return
          if f in f_list:
              mod = 'bin.' + f
              m = _import(mod)
              try:
                  m.main(inp)
              except TypeError:
                  try:
                      m.main()
                  except TypeError:
                      err(1)
              except AttributeError:
                  err(1, f)
          elif f not in f_list:
              analyze(f)
  
      def start(self):
          print('Starting Shell...\n')
          # write config file
          write_config()
          sleep(1)
          print('Running...\n')
          sleep(0.5)
          print('Issue "help" to get started...\n')
          while True:
              inp = self.get_input()
              self.execute(inp)
  