<filename>pipsi_tool/commands/upgrade_all.py<gh_stars>1-10
"""
Command 'upgrade-all' for pipsi-tool
"""

import subprocess
import sys

from pipsi_tool.commands.command import Command
from pipsi_tool.pipsi_package import gather_packages


class UpgradeAll(Command):
    """
    Class for command upgrade-all
    """
    def run(self):
        """
        Run action
        :return:
        """
        packages = gather_packages()
        for package in packages:
            subprocess.run(['pipsi', 'upgrade', package], stdout=sys.stdout, stderr=sys.stderr, stdin=sys.stdin)

<filename>pipsi_tool/commands/upgrade_all.py<gh_stars>1-10
"""
Command 'upgrade-all' for pipsi-tool
"""

import subprocess
import sys

from pipsi_tool.commands.command import Command
from pipsi_tool.pipsi_package import gather_packages


class UpgradeAll(Command):
    """
    Class for command upgrade-all
    """
    def run(self):
        """
        Run action
        :return:
        """
        packages = gather_packages()
        for package in packages:
            subprocess.run(['pipsi', 'upgrade', package], stdout=sys.stdout, stderr=sys.stderr, stdin=sys.stdin)

Command 'upgrade-all' for pipsi-tool Class for command upgrade-all Run action         :return: