Source code for covertutils.shells.impl.standardshell

from covertutils.shells import BaseShell
from covertutils.shells.subshells import ControlSubShell, PythonAPISubShell, SimpleSubShell

from covertutils.helpers import defaultArgMerging


[docs]class StandardShell (BaseShell) : Defaults = {} Defaults['subshells'] = { 'control' : ControlSubShell, 'python' : PythonAPISubShell, 'os-shell' : SimpleSubShell, } Defaults['prompt'] = "({package} v{version})> "
[docs] def __init__( self, handler, **kw ) : args = defaultArgMerging(StandardShell.Defaults, kw) BaseShell.__init__( self, handler, **args ) self.sysinfo = None