You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type of --output-keys is a string. I've always thought the string needed to be a comma-delimited list, but really it could be ... anything? ... so long as the string contains the relevant key name:
Current state
Users can supply
--output-keys
to customize the set of information returned bydbt list
:The type of
--output-keys
is a string. I've always thought the string needed to be a comma-delimited list, but really it could be ... anything? ... so long as the string contains the relevant key name:dbt-core/core/dbt/cli/params.py
Lines 157 to 159 in c85be32
Proposal
We just (#6641) added a
MultiOption
option to support params like--select
, that take multiple space-limited arguments:This would be more consistent, and allow us to treat the type of
output_keys
as a list (right?) for programmatic invocations:Looks like that's even how we've been documenting it (incorrectly)! https://docs.getdbt.com/reference/commands/list
Add a test
We also need an automated test for
dbt list --output json --output-keys
!The text was updated successfully, but these errors were encountered: