-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Support passing contents of file to meltano config <plugin> set <setting>
via stdin
#8177
Comments
Seems interesting, @edgarrmondragon can I work on this. |
Go for it @XshubhamX |
Instead of making the flow complex it more complex, why can’t we just add this support inside the interactive flow. Current User Journey
Now we want to allow user to provide data which includes complex big strings with line breaks. Now if we look closely this is also a way to provide So the way user provide the value of the variable remains same in both the cases which is - Stdin Suggestion
Code Changes. Set Config Function
Thoughts @edgarrmondragon |
This would be a breaking change, so I would try to avoid. I also can't see how this would solve this problem with how Meltano currently parses nested settings:
|
@edgarrmondragon As explained above in this case we'll first read the standard input and update the settings and value according to that.
|
@XshubhamX Ok, that might work but a few cases that are worth testing:
|
@edgarrmondragon Will check this and also enhance the tests for setting config. |
Feature scope
CLI (options, error messages, logging, etc.)
Description
Current situation
There's a few ways to set a config value at the moment:
Proposal
Allow users to set a config value from a file. This is particularly useful when the value is a multi-line string or some other value that's stored in a file somewhere.
The GitHub CLI supports this:
Notice how there's 3 ways of supplying input:
--body
option.The difficulty in implementing in our case is that we can't omit the value in non-interactive input because we accept multi-valued setting names:
One way to support stdin would be to use a special value to tell Meltano to read from stdin, perhaps
-
:The text was updated successfully, but these errors were encountered: