Method: Bundler::CLI.handle_no_command_error
- Defined in:
- lib/bundler/cli.rb
.handle_no_command_error(command, has_namespace = $thor_runner) ⇒ Object
145 146 147 148 149 150 151 152 153 |
# File 'lib/bundler/cli.rb', line 145 def self.handle_no_command_error(command, has_namespace = $thor_runner) if Bundler.feature_flag.plugins? && Bundler::Plugin.command?(command) return Bundler::Plugin.exec_command(command, ARGV[1..-1]) end return super unless command_path = Bundler.which("bundler-#{command}") Kernel.exec(command_path, *ARGV[1..-1]) end |