[CT-659] [Feature] Add a better name for flags.WHICH #5262
Labels
artifacts
enhancement
New feature or request
logging
stale
Issues that have gone stale
tech_debt
Behind-the-scenes changes, with little direct impact on end-user functionality
Is this your first time opening an issue?
Describe the Feature
We have different dbt commands (run, test, compile, docs, etc.) and refer them as "commands"
However the variable in the context storing this information called "flags.WHICH", what is clear for developer community, but might be confusing for users
Suggestion is to have another flag: flags.EXECUTED_COMMAND or flags.COMMAND to store the same as flags.WHICH
Deprecate flags.WHICH and potentially remove it in dbt 2.0
Describe alternatives you've considered
I even made a PR thinking that flags.WHICH doesn't exist :)
Who will this benefit?
everyone who're doing hooks and unit testing
Are you interested in contributing this feature?
I think I can
Anything else?
This feature is a spin-off from #5251
The text was updated successfully, but these errors were encountered: