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

Greatly Rework Bridgectl for Consistency, Speed, Functionality, and More #6

Merged
merged 2 commits into from
Mar 30, 2024

Conversation

Mythra
Copy link
Contributor

@Mythra Mythra commented Mar 30, 2024

As you can see by the branch name, I was once again hoping to work through PCFS, but while working on it I was having such frustrations with the current subpar architecture of bridgectl (admittedly my own quick prototyping fault).

This greatly reworks bridgectl to have significantly more consistent behavior, flags, descriptions, and more. Specifically this moves to a concept of using static variables that are initialized, and actually sharing argument structures. This means all of the commands that need to target a specific bridge ip, or name actually have the same flags, and same lookup behavior. Rather than it being copied over all over the place, with slightly different buggy behaviors.

It also actually causes significantly less lookups as we know how to use the configuration file/environment variables to help prevent lookups when possible.

Overall I tested some very common things, so this should all work. However, there may be one or two small bugs introduced as a result.

@Mythra Mythra merged commit f180bd7 into trunk Mar 30, 2024
12 checks passed
@Mythra Mythra deleted the dev/pcfs-frd-frd branch March 30, 2024 20:58
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.

1 participant