Sha256: 7c80be2646f3b9f6210ac2e926ed8789ca5765c3b7a5b8f7bd2970e90c1d073a

Contents?: true

Size: 360 Bytes

Versions: 28

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Commands
    module Version
      def self.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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
mihari-5.2.2 lib/mihari/commands/version.rb
mihari-5.2.1 lib/mihari/commands/version.rb
mihari-5.2.0 lib/mihari/commands/version.rb
mihari-5.1.4 lib/mihari/commands/version.rb
mihari-5.1.3 lib/mihari/commands/version.rb
mihari-5.1.2 lib/mihari/commands/version.rb
mihari-5.1.1 lib/mihari/commands/version.rb
mihari-5.1.0 lib/mihari/commands/version.rb
mihari-5.0.1 lib/mihari/commands/version.rb
mihari-5.0.0 lib/mihari/commands/version.rb
mihari-4.12.0 lib/mihari/commands/version.rb
mihari-4.11.0 lib/mihari/commands/version.rb
mihari-4.10.0 lib/mihari/commands/version.rb
mihari-4.9.0 lib/mihari/commands/version.rb
mihari-4.8.0 lib/mihari/commands/version.rb
mihari-4.7.4 lib/mihari/commands/version.rb
mihari-4.7.3 lib/mihari/commands/version.rb
mihari-4.7.2 lib/mihari/commands/version.rb
mihari-4.7.1 lib/mihari/commands/version.rb
mihari-4.7.0 lib/mihari/commands/version.rb