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

refactor: move global struct and config.Source types into separate packages #796

Merged
merged 2 commits into from
Feb 7, 2023

Conversation

Integralist
Copy link
Collaborator

@Integralist Integralist commented Feb 7, 2023

The reason the change set is so large is that the struct being moved happened to be consumed in every single file.

Changes:

  • I moved the config.Data struct type to a global package as it wasn't exclusive to configuration.
  • I moved the config.Source enum type to a lookup package as it wasn't exclusive to configuration.
  • I renamed all references to global data and manifest data to g and m respectively.
  • I renamed config.Flag to global.Flags (plural).

@Integralist Integralist added the clean-up Code clean-up or refactor label Feb 7, 2023
@Integralist Integralist changed the title refactor: move global type to a separate package refactor: move global struct type and config.Source type into separate packages Feb 7, 2023
@Integralist Integralist changed the title refactor: move global struct type and config.Source type into separate packages refactor: move global struct and config.Source types into separate packages Feb 7, 2023
@Integralist Integralist merged commit 342a853 into main Feb 7, 2023
@Integralist Integralist deleted the integralist/refactor branch February 7, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clean-up Code clean-up or refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant