Ejemplo n.º 1
0
 def get_commands(self):
     # core doit commands
     cmds = DoitMain.get_commands(self)
     # load nikola commands
     for name, cmd in self.nikola.commands.items():
         cmds[name] = cmd
     return cmds
Ejemplo n.º 2
0
 def get_commands(self):
     # core doit commands
     cmds = DoitMain.get_commands(self)
     # load nikola commands
     for name, cmd in self.nikola._commands.items():
         cmds[name] = cmd
     return cmds
Ejemplo n.º 3
0
 def get_commands(self):
     # core doit commands
     cmds = DoitMain.get_commands(self)
     # load nikola commands
     for name, cmd in self.nikola.commands.items():
         cmds[name] = cmd
     # Hide run because Nikola uses build
     cmds.pop('run')
     return cmds
Ejemplo n.º 4
0
 def get_commands(self):
     cmds = DoitMain.get_commands(self)
     for extra_cmd_cls in self._extra_cmds:
         if issubclass(extra_cmd_cls, DoitCmdBase):
             extra_cmd = extra_cmd_cls(task_loader=self.task_loader)
             extra_cmd.doit_app = self
         else:
             extra_cmd = extra_cmd_cls()
         cmds[extra_cmd.name] = extra_cmd
     return cmds
Ejemplo n.º 5
0
 def get_commands(self):
     cmds = DoitMain.get_commands(self)
     my_cmd = MyCmd()
     cmds[my_cmd.name] = my_cmd
     return cmds