Skip to content

Code review and refactor#33

Open
mikeschinkel wants to merge 4 commits into
liquibase:feature/idiomatic-gofrom
mikeschinkel:code-review-and-refactor
Open

Code review and refactor#33
mikeschinkel wants to merge 4 commits into
liquibase:feature/idiomatic-gofrom
mikeschinkel:code-review-and-refactor

Conversation

@mikeschinkel

Copy link
Copy Markdown

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
@CLAassistant

CLAassistant commented Nov 10, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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