lib/karafka/cli/console.rb in karafka-0.5.0.3 vs lib/karafka/cli/console.rb in karafka-0.6.0.rc1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Karafka # Karafka framework Cli class Cli # Console Karafka Cli action class Console < Base @@ -8,10 +10,14 @@ # @return [String] Console executing command # @example # Karafka::Cli::Console.command #=> 'KARAFKA_CONSOLE=true bundle exec irb...' def self.command - "KARAFKA_CONSOLE=true bundle exec irb -r #{Karafka.boot_file}" + envs = [ + "IRBRC='#{Karafka.gem_root}/.console_irbrc'", + 'KARAFKA_CONSOLE=true' + ] + "#{envs.join(' ')} bundle exec irb" end # Start the Karafka console def call cli.info