Class: Karafka::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/karafka/cli.rb,
lib/karafka/cli/base.rb,
lib/karafka/cli/info.rb,
lib/karafka/cli/server.rb,
lib/karafka/cli/topics.rb,
lib/karafka/cli/console.rb,
lib/karafka/cli/install.rb

Overview

Karafka framework Cli

Defined Under Namespace

Classes: Base, Console, Info, Install, Server, Topics

Class Method Summary collapse

Class Method Details

.prepareObject

Loads all Cli commands into Thor framework. This method should be executed before we run Karafka::Cli.start, otherwise we won’t have any Cli commands available.



18
19
20
21
22
# File 'lib/karafka/cli.rb', line 18

def prepare
  cli_commands.each do |action|
    action.bind_to(self)
  end
end