class SystemPlugin (Builtin):
def __init__(self):
super(SystemPlugin, self).__init__(name='system')
-
- def commands(self):
- return [ListDirectoryCommand(), GetWorkingDirectoryCommand(),
- ChangeDirectoryCommand(), SystemCommand()]
+ self._commands = [
+ ListDirectoryCommand(), GetWorkingDirectoryCommand(),
+ ChangeDirectoryCommand(), SystemCommand()]
+ self._setup_commands()
class ListDirectoryCommand (Command):