Unverified Commit 47c0cecd authored by Sébastien Eustace's avatar Sébastien Eustace
Browse files

Remove call overwrite in Command class

parent 3924f2e0
Loading
Loading
Loading
Loading
+0 −15
Changes for poetry/console/commands/command.py: 0 added lines, 15 removed lines.
Original line number Diff line number Diff line
@@ -15,21 +15,6 @@ class Command(BaseCommand):
    def reset_poetry(self) -> None:
        self.get_application().reset_poetry()

    def call(self, name, options=None):
        """
        Call another command.

        Fixing style being passed rather than an output
        """
        if options is None:
            options = []

        command = self.get_application().find(name)

        options = [('command', command.get_name())] + options

        return command.run(ListInput(options), self.output.output)

    def run(self, i, o) -> int:
        """
        Initialize command.