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

Move pkg to internal #210

Merged
merged 2 commits into from
Nov 6, 2021
Merged

Move pkg to internal #210

merged 2 commits into from
Nov 6, 2021

Conversation

mbrt
Copy link
Owner

@mbrt mbrt commented Nov 6, 2021

Make all implementation details internal. This makes sure people don't start importing gmailctl packages and start depending on them.

To make this possible, the APIProvider interface used by gmailctl/cmd doesn't mention pkg/api anymore. The end result is much cleaner and should allow additional API providers to be added without too much effort.

This make the interface between the cmd package and main clearer.
There is now no mention of internal Gmail APIs in public interfaces and
it should be possible to implement alternative init workflows without
workarounds.
This is as easy as moving them from pkg/ to internal/.
@mbrt mbrt merged commit 4cddc27 into master Nov 6, 2021
@mbrt mbrt deleted the move-to-internal branch November 6, 2021 18:25
@cweagans cweagans mentioned this pull request Jan 22, 2024
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.

None yet

1 participant