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

[POA-2129] Separate out common apidump flags #49

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

mudit-postman
Copy link
Contributor

  • In this PR, we have moved out common apidump flags from apidump.go to common_flags.go.
  • common_flags.go have two functions:
    • AddCommonApiDumpFlags(): Add the flags to cobra.Command object. It returns the objects to which flag values will be assigned.
    • ConvertCommonApiDumpFlagsToArgs(): Returns an array of strings (like --flag value). It is added to the apidump command in different platform installation configurations.
  • The ecs and ec2 commands will read these values and then convert them to flags for apidump commands and add them to the definition file (ecs) or systems service file (ec2)
  • The apidump command will use these flag values to set the main apidump package variables.

@mudit-postman mudit-postman requested review from mgritter and removed request for mgritter November 18, 2024 06:46
@mudit-postman mudit-postman merged commit ac38940 into main Dec 4, 2024
4 checks passed
@mudit-postman mudit-postman deleted the mudit/POA-2129 branch December 4, 2024 06:10
liujed added a commit that referenced this pull request Dec 11, 2024
Changes to `CommonApiDumpFlags` were being lost.
liujed added a commit that referenced this pull request Dec 11, 2024
Changes to `CommonApiDumpFlags` were being lost.

Also took the opportunity to properly organize our import statements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants