Example #1
0
    def init_commands(self):
        self.cli = Application(orator_application.get_name(),
                               orator_application.get_version())

        self.cli.add(InstallCommand(self))
        self.cli.add(MigrateCommand(self))
        self.cli.add(MigrateMakeCommand(self))
        self.cli.add(RollbackCommand(self))
        self.cli.add(StatusCommand(self))
        self.cli.add(ResetCommand(self))
Example #2
0
 def init_commands(self):
     self.cli = Application(orator_application.get_name(),
                            orator_application.get_version())
     
     self.cli.add(InstallCommand(self))
     self.cli.add(MigrateCommand(self))
     self.cli.add(MigrateMakeCommand(self))
     self.cli.add(RollbackCommand(self))
     self.cli.add(StatusCommand(self))
     self.cli.add(ResetCommand(self))
Example #3
0
    def init_commands(self):
        self.cli = Application(orator_application.get_name(),
                               orator_application.get_version(),
                               complete=True)

        for command in orator_application.all().values():
            if isinstance(command, Command):
                self.cli.add(command.__class__(self._db))
            else:
                self.cli.add(command)
Example #4
0
    def init_commands(self):
        self.cli = Application(
            orator_application.get_name(),
            orator_application.get_version(),
            complete=True
        )

        for command in orator_application.all().values():
            if isinstance(command, Command):
                self.cli.add(command.__class__(self._db))
            else:
                self.cli.add(command)