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

Code review and refactor #33

Open
wants to merge 4 commits into
base: feature/idiomatic-go
Choose a base branch
from

Conversation

mikeschinkel
Copy link

As promised, here is a PR to your feature/idiomatic-go branch from the fork I created and worked on. For your review and consideration.

In the initial refactor commit I had not wired up the category and global flags, and after discussion with @mcred decided to move commands into a subdirectory.
Added a missing error handled in lpm.Initialize() and renamed
lpm.ContextFromCobraCommand() to lpm.GetContextFromCommand().
Changed WorkingDir, Category, HomeDir and Path to all be private as they are not used anywhere outside of Context and I didn't want Context to less cohesive than it needs to be. Also renamed GetFilteredPackages() to GetCategoryFilteredPackages() to be more accurate.
@jnewton03 jnewton03 requested a review from mcred April 3, 2023 19:42
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