Skip to content

Commit b68987e

Browse files
committed
brew style --fix
1 parent b20a908 commit b68987e

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Library/Homebrew/cmd/bundle.rb

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -222,28 +222,6 @@ def run
222222
when "check"
223223
require "bundle/commands/check"
224224
Homebrew::Bundle::Commands::Check.run(global:, file:, no_upgrade:, verbose:)
225-
when *BUNDLE_EXEC_COMMANDS
226-
named_args = case subcommand
227-
when "exec"
228-
_subcommand, *named_args = args.named
229-
named_args
230-
when "sh"
231-
preferred_path = Utils::Shell.preferred_path(default: "/bin/bash")
232-
notice = unless Homebrew::EnvConfig.no_env_hints?
233-
<<~EOS
234-
Your shell has been configured to use a build environment from your `Brewfile`.
235-
This should help you build stuff.
236-
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
237-
When done, type `exit`.
238-
EOS
239-
end
240-
ENV["HOMEBREW_FORCE_API_AUTO_UPDATE"] = nil
241-
[Utils::Shell.shell_with_prompt("brew bundle", preferred_path:, notice:)]
242-
when "env"
243-
["env"]
244-
end
245-
require "bundle/commands/exec"
246-
Homebrew::Bundle::Commands::Exec.run(*named_args, global:, file:, subcommand:, services: args.services?)
247225
when "list"
248226
require "bundle/commands/list"
249227
Homebrew::Bundle::Commands::List.run(
@@ -284,6 +262,28 @@ def run
284262
require "bundle/commands/remove"
285263
Homebrew::Bundle::Commands::Remove.run(*named_args, type: selected_types.first, global:, file:)
286264
end
265+
when *BUNDLE_EXEC_COMMANDS
266+
named_args = case subcommand
267+
when "exec"
268+
_subcommand, *named_args = args.named
269+
named_args
270+
when "sh"
271+
preferred_path = Utils::Shell.preferred_path(default: "/bin/bash")
272+
notice = unless Homebrew::EnvConfig.no_env_hints?
273+
<<~EOS
274+
Your shell has been configured to use a build environment from your `Brewfile`.
275+
This should help you build stuff.
276+
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
277+
When done, type `exit`.
278+
EOS
279+
end
280+
ENV["HOMEBREW_FORCE_API_AUTO_UPDATE"] = nil
281+
[Utils::Shell.shell_with_prompt("brew bundle", preferred_path:, notice:)]
282+
when "env"
283+
["env"]
284+
end
285+
require "bundle/commands/exec"
286+
Homebrew::Bundle::Commands::Exec.run(*named_args, global:, file:, subcommand:, services: args.services?)
287287
else
288288
raise UsageError, "unknown subcommand: #{subcommand}"
289289
end

0 commit comments

Comments
 (0)