Class: Karafka::Cli::Missingno
- 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
Instance Method Summary collapse
-
#call ⇒ Object
Prints an error about the lack of command (nothing selected).
Methods inherited from Base
bind_to, desc, #initialize, option
Constructor Details
This class inherits a constructor from Karafka::Cli::Base
Instance Method Details
#call ⇒ Object
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 |