Sha256: acf6a4841d17a0936b280603556952b4e9a07e4808c5452ae00f88f78f971d45
Contents?: true
Size: 712 Bytes
Versions: 27
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true module Karafka # Karafka framework Cli class Cli < Thor # Console Karafka Cli action class Console < Base desc 'Start the Karafka console (short-cut alias: "c")' option aliases: 'c' # @return [String] Console executing command # @example # Karafka::Cli::Console.command #=> 'KARAFKA_CONSOLE=true bundle exec irb...' def self.command envs = [ "IRBRC='#{Karafka.gem_root}/.console_irbrc'", 'KARAFKA_CONSOLE=true' ] "#{envs.join(' ')} bundle exec irb" end # Start the Karafka console def call cli.info exec self.class.command end end end end
Version data entries
27 entries across 27 versions & 1 rubygems