From 2cfca00e42bf7ca9697d23bc2904d7261b42eb9e Mon Sep 17 00:00:00 2001 From: Leo Schick Date: Thu, 5 May 2022 15:33:58 +0200 Subject: [PATCH] support generic parameters for command.run see https://github.com/mara/mara-pipelines/pull/69 --- mara_singer/commands/singer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mara_singer/commands/singer.py b/mara_singer/commands/singer.py index 640cce2..b539ae7 100644 --- a/mara_singer/commands/singer.py +++ b/mara_singer/commands/singer.py @@ -61,7 +61,7 @@ def tap_config(self) -> dict: return tap_config - def run(self) -> bool: + def run(self, *args, **kargs) -> bool: """ Runs the command @@ -187,7 +187,7 @@ def _target_config_path(self): self.__target_config_path = pathlib.Path(config.config_dir()) / f'{self._target_name()}.json.tmp-{unique_file_suffix()}' return self.__target_config_path - def run(self) -> bool: + def run(self, *args, **kargs) -> bool: # create temp catalog (if necessary) tmp_catalog_file_path = None if self.stream_selection: @@ -230,7 +230,7 @@ def run(self) -> bool: return False # execute shell command - if not super().run(): + if not super().run(*args, **kargs): return False finally: if self.stream_selection: