Skip to content

Commit

Permalink
Merge pull request #1577 from Homebrew/edit_cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Jan 23, 2025
2 parents 23200fd + d647846 commit c02775a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/bundle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class BundleCmd < AbstractCommand
By default, only Homebrew formula dependencies are listed.
`brew bundle edit`:
Edit the `Brewfile` in your editor.
`brew bundle exec` <command>:
Run an external command in an isolated build environment based on the `Brewfile` dependencies.
Expand Down Expand Up @@ -123,7 +126,7 @@ class BundleCmd < AbstractCommand
conflicts "--all", "--no-vscode"
conflicts "--vscode", "--no-vscode"

named_args %w[install dump cleanup check exec list sh env]
named_args %w[install dump cleanup check exec list sh env edit]
end

sig { override.void }
Expand Down Expand Up @@ -191,6 +194,8 @@ def run
whalebrew: args.whalebrew? || no_type_args,
vscode:
)
when "edit"
exec_editor(Bundle::Brewfile.path(global:, file:))
when "cleanup"
Bundle::Commands::Cleanup.run(global:, file:, force:, zap:)
when "check"
Expand Down

0 comments on commit c02775a

Please sign in to comment.