feat: add remove not present option in setup and bundle command #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the addition of the remove flag mentioned inside the Pull Request #20
I have added to the
setup
andbundle
command the option-r
or--rm
that adds to the brew bundle command the--cleanup
and--zap
option.The option will be applied to each workspaces since it's passed to the
ZeroRunner
with a default value tofalse
.However, I still see an issue that can cause problems with workspaces : the --zap and --cleanup options are passed to each brew bundle commands, for each workspaces. When launching the first brew bundle command (on the shared workspace), it will remove all bottles and casks from other workspaces.
I see a possible solution but it will require a breaking change in the way we process Brewfiles : instead of launching the brew command inside a directory, we can collect the content of the Brewfiles for each workspace, append it to a single big Brewfile and bundle this. What do you think @msanders ?