src.plugins.plugin_durachok

 1from src.cmd_types.commands import ExecutableCommand
 2from src.decorators.commands_register import command
 3
 4@command("xd")
 5class CommandXD(ExecutableCommand):
 6    def _parse_args(self, *args):
 7        return []
 8
 9    def execute(self):
10        raise Exception("Razrabotchik krivorukiy")
11
12@command("ls")
13class CommandLs(ExecutableCommand):
14    def _parse_args(self, *args):
15        pass
16
17    def execute(self):
18        pass
19
20@command("jk")
21class CommandJk(ExecutableCommand):
22    def _parse_args(self,):
23        raise Exception("Razrabotchik krivorukiy n.2")
24
25    def execute(self):
26        self._parse_args()
@command('xd')
class CommandXD(src.cmd_types.commands.ExecutableCommand):
 5@command("xd")
 6class CommandXD(ExecutableCommand):
 7    def _parse_args(self, *args):
 8        return []
 9
10    def execute(self):
11        raise Exception("Razrabotchik krivorukiy")

Abstract class for executable commands(has no undo method)

Parameters
  • args: list of arguments passed to the command
def execute(self):
10    def execute(self):
11        raise Exception("Razrabotchik krivorukiy")

Executes command

logger: logging.Logger = <Logger xd (WARNING)>
name: str = 'xd'

Name of the command

flags: list | None = None

Flags names to parse(with '-' in front)

@command('ls')
class CommandLs(src.cmd_types.commands.ExecutableCommand):
13@command("ls")
14class CommandLs(ExecutableCommand):
15    def _parse_args(self, *args):
16        pass
17
18    def execute(self):
19        pass

Abstract class for executable commands(has no undo method)

Parameters
  • args: list of arguments passed to the command
def execute(self):
18    def execute(self):
19        pass

Executes command

logger: logging.Logger = <Logger ls (WARNING)>
name: str = 'ls'

Name of the command

flags: list | None = None

Flags names to parse(with '-' in front)

@command('jk')
class CommandJk(src.cmd_types.commands.ExecutableCommand):
21@command("jk")
22class CommandJk(ExecutableCommand):
23    def _parse_args(self,):
24        raise Exception("Razrabotchik krivorukiy n.2")
25
26    def execute(self):
27        self._parse_args()

Abstract class for executable commands(has no undo method)

Parameters
  • args: list of arguments passed to the command
def execute(self):
26    def execute(self):
27        self._parse_args()

Executes command

logger: logging.Logger = <Logger jk (WARNING)>
name: str = 'jk'

Name of the command

flags: list | None = None

Flags names to parse(with '-' in front)