Skip to content

Move pkg to internal#210

Merged
mbrt merged 2 commits into
masterfrom
move-to-internal
Nov 6, 2021
Merged

Move pkg to internal#210
mbrt merged 2 commits into
masterfrom
move-to-internal

Conversation

@mbrt
Copy link
Copy Markdown
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.

mbrt added 2 commits November 6, 2021 18:10
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 force-pushed the move-to-internal branch from e138add to aaddb8e Compare November 6, 2021 18:20
@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.

1 participant