Sha256: 340d8107752be1f6236748f286824c76e85b36a5c3c4f9b8a37686fa2a8e92c6

Contents?: true

Size: 442 Bytes

Versions: 29

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Commands
    #
    # Version sub-commands
    #
    module Version
      class << self
        def included(thor)
          thor.class_eval do
            map %w[--version -v] => :__print_version

            desc "--version, -v", "Print the version"
            def __print_version
              puts Mihari::VERSION
            end
          end
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
mihari-8.0.0 lib/mihari/commands/version.rb
mihari-7.6.4 lib/mihari/commands/version.rb
mihari-7.6.3 lib/mihari/commands/version.rb
mihari-7.6.2 lib/mihari/commands/version.rb
mihari-7.6.1 lib/mihari/commands/version.rb
mihari-7.6.0 lib/mihari/commands/version.rb
mihari-7.5.0 lib/mihari/commands/version.rb
mihari-7.4.0 lib/mihari/commands/version.rb
mihari-7.3.2 lib/mihari/commands/version.rb
mihari-7.3.1 lib/mihari/commands/version.rb
mihari-7.3.0 lib/mihari/commands/version.rb
mihari-7.2.0 lib/mihari/commands/version.rb
mihari-7.1.3 lib/mihari/commands/version.rb
mihari-7.1.2 lib/mihari/commands/version.rb
mihari-7.1.1 lib/mihari/commands/version.rb
mihari-7.1.0 lib/mihari/commands/version.rb
mihari-7.0.5 lib/mihari/commands/version.rb
mihari-7.0.4 lib/mihari/commands/version.rb
mihari-7.0.3 lib/mihari/commands/version.rb
mihari-7.0.2 lib/mihari/commands/version.rb