Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
support generic parameters for command.run
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-schick committed Sep 1, 2022
1 parent 2c9a9ad commit 1064dec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mara_singer/commands/singer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1064dec

Please sign in to comment.