Hey team, is there a way to introduce cli paramete...
# singer-tap-development
s
Hey team, is there a way to introduce cli parameters into a custom command? I would like to do something also the lines of
Copy code
commands:
   run:
      args: run -s ${flag_1} --jump ${flag-2}

$ meltano invoke my_plugin:run -s tmp --jump how_high
s
I think no, but me and a few other users already had other similar use cases, see here (I would simply like to supply an ENV VAR right there): https://github.com/meltano/meltano/issues/6770 you might want to add to that issue. @Will Da Silva (Arch) @ken_payne could one of you confirm this isn't possible right now?
w
@Stéphane Burwash I'm not sure what your example shows. You use env var interpolation in the args field, but then what do you want to happen when you run the
meltano invoke
line afterwards? Maybe it would help to write out the command that Meltano should supply to the plugin's executable in a few cases with this feature.
s
Hey @Will Da Silva (Arch) thanks for answering 😄 Full context: I'm trying to wrap arguments around the data-diff extension without having to use env variables (so that I can simply write the full command in the CLI) Ex: I would like to run:
Copy code
meltano invoke data-diff --db_1 my_db --table_1 my_table --db_2 my_2nd_db --table_2 my_2nd_table
Where
db_1
,
db_2
,
table_1
&
table_2
are custom flags wrapped around the command, making it easier to invoke
I'm guessing that my usecase fits more the EDK though
w
Yeah, this would be straightforward with the EDK. I'm not sure if there's some lightweight clever way to do what you're looking to do without it.