Class: Karafka::Cli::Missingno

Inherits:
Base
  • Object
show all
Defined in:
lib/karafka/cli/missingno.rb

Overview

Command that gets invoked when no method is provided when running the CLI It allows us to exit with exit code 1 instead of default 0 to indicate that something

was missing

Instance Attribute Summary

Attributes inherited from Base

#cli

Instance Method Summary collapse

Methods inherited from Base

bind_to, desc, #initialize, option

Constructor Details

This class inherits a constructor from Karafka::Cli::Base

Instance Method Details

#callObject

Prints an error about the lack of command (nothing selected)



13
14
15
16
# File 'lib/karafka/cli/missingno.rb', line 13

def call
  Karafka.logger.error('No command provided')
  exit 1
end