Sha256: eef20cbfa9a3f381938ddbe4b341c8c95e10bcdffe1aa0fc2d145c0233bb4c59

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Commands
    module GreyNoise
      def self.included(thor)
        thor.class_eval do
          desc "greynoise [QUERY]", "GreyNoise search"
          method_option :title, type: :string, desc: "title"
          method_option :description, type: :string, desc: "description"
          method_option :tags, type: :array, desc: "tags"
          def greynoise(query)
            with_error_handling do
              run_analyzer Analyzers::GreyNoise, query: query, options: options
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mihari-3.12.0 lib/mihari/commands/greynoise.rb
mihari-3.11.0 lib/mihari/commands/greynoise.rb
mihari-3.10.1 lib/mihari/commands/greynoise.rb
mihari-3.10.0 lib/mihari/commands/greynoise.rb