Open MeltyBot opened 3 years ago
This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the evergreen
label, or request that it be added.
Still relevant
This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the evergreen
label, or request that it be added.
Still relevant
Added this to the Office Hours board. I'm interested in polling folks:
--config
inputs?--config=ENV
?--read-env
be useful (this issue)?-d
for --discover
) be appreciated?
Migrated from GitLab: https://gitlab.com/meltano/sdk/-/issues/200
Originally created by @edgarrmondragon on 2021-08-24 19:04:04
Summary
Currently, the way to tell a tap-based SDK to parse environment variables for settings is to pass a
--config=ENV
option to the tap invocationI suggest supporting a boolean
--env-config
instead.Proposed benefits
Be more explicit about environment parsing option for settings and don't rely on the hardcoded
ENV
string.Also, the position of
--config=ENV
in the multi-value sequence is not important, so in practice it acts only as a flag. It'd be good to make that understanding more explicit.Proposal details
Add a new
--env-config
option to the tap CLI decorators:The corresponding
env_config
boolean variable in the function would then be passed directly to theTap
constructor'sparse_env_config
argument.Best reasons not to build
--env-config
is not standard for Singer taps, so this would act as an extension to the common CLI options.cc @aaronsteers