Skip to content
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

Merging MetaRes and MetaGroup to one #243

Merged
merged 2 commits into from
Sep 29, 2022
Merged

Conversation

magodo
Copy link
Collaborator

@magodo magodo commented Sep 29, 2022

Refactoring the MetaRes and MetaGroup to one interface Meta, which has 4 implementers mapping to the 4 subcommands. The Meta is then shared by one process for interactive and one process for non-interactive mode. Previously, the interactive/non-interactive processes have two implementations for the group (corresponds to rg, query, map modes) and resource mode, where each one has a big part of duplicated code.

The benefit of this PR is:

  • More DRY (code, document, etc)
  • resource mode now also has interactive mode, which is useful for Azure resource that maps to more than one TF resource

@magodo magodo added the enhancement New feature or request label Sep 29, 2022
@magodo magodo mentioned this pull request Sep 29, 2022
5 tasks
@magodo magodo merged commit 4643a8d into Azure:main Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant