from Task import Task
from Helper import Cli


class CliExecute(Task):
    def __init__(self, logMethod, parent, params):
        super().__init__("CLI Execute", parent, params, logMethod, None)

    def Run(self):
        parameters = self.params['Parameters']
        cwd = self.params['CWD']

        cli = Cli(parameters, cwd, self.logMethod)
        cli.Execute()

from Task import Task
from Helper import Cli


class CliExecute(Task):
    def __init__(self, logMethod, parent, params):
        super().__init__("CLI Execute", parent, params, logMethod, None)

    def Run(self):
        parameters = self.params['Parameters']
        cwd = self.params['CWD']

        cli = Cli(parameters, cwd, self.logMethod)
        cli.Execute()
