Sha256: b1dd9d4ec43118c40e638806d2d8a31492f03cf19e901a2cd179988a3994195e

Contents?: true

Size: 437 Bytes

Versions: 4

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

module PgEventstore
  module CLI
    module Commands
      class HelpCommand
        attr_reader :options

        # @param options [PgEventstore::CLI::ParserOptions::BaseOptions]
        def initialize(options)
          @options = options
        end

        # @return [Integer] exit code
        def call
          puts options.help
          ExitCodes::SUCCESS
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pg_eventstore-1.9.0 lib/pg_eventstore/cli/commands/help_command.rb
pg_eventstore-1.8.0 lib/pg_eventstore/cli/commands/help_command.rb
pg_eventstore-1.7.0 lib/pg_eventstore/cli/commands/help_command.rb
pg_eventstore-1.6.0 lib/pg_eventstore/cli/commands/help_command.rb