Sha256: 3f3a3903b94de317ae59ae1bcca2e8bc4abc68add13a19b9695c9f1e1ceffa5b
Contents?: true
Size: 607 Bytes
Versions: 15
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true module Karafka class Cli < Thor # 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 # @see https://github.com/karafka/karafka/issues/619 class Missingno < Base desc 'Hidden command that gets invoked when no command is provided', hide: true # Prints an error about the lack of command (nothing selected) def call Karafka.logger.error('No command provided') exit 1 end end end end
Version data entries
15 entries across 15 versions & 1 rubygems