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

Added ability to "apply" certain Go CLI commands without updates + refactors #129

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

bcarlson-dev
Copy link
Contributor

@bcarlson-dev bcarlson-dev commented Jan 16, 2025

  • Reset previously did not allow for "Apply" unless "Update" was used (a uniform requirement). If a network were in a fresh state, the "Update" would fail, not allowing the "Apply," which would, therefore, not allow for the intended "reset" behavior. Since this "unmodified apply" is ideal for at least one other command (provisioning), an additional struct parameter was added to change the skipping of "Apply."
  • Additional refactoring was done to reduce time complexity and improve readability without referencing the struct declaration.

EDIT: It appears VSCode applied Auto-Format to the main.go, which I didn't notice until now. I can revert if needed.

@bcarlson-dev bcarlson-dev marked this pull request as draft January 16, 2025 17:35
@bcarlson-dev bcarlson-dev marked this pull request as ready for review January 23, 2025 00:48
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