Sha256: fd8c8e6e46364013e0f6236499e5183395e93d5a7b1e25d4f65ec7077517c53d
Contents?: true
Size: 500 Bytes
Versions: 4
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true module UrlScan module Commands class Pro < Base desc "search", "search for scans" method_option :size, type: :numeric, default: 50 method_option :query, type: :string method_option :filter, type: :string def search with_error_handling do res = api.pro.search(query: options["query"], filter: options["filter"], size: options["size"]) puts JSON.pretty_generate(res) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
urlscan-0.6.0 | lib/urlscan/commands/pro.rb |
urlscan-0.5.0 | lib/urlscan/commands/pro.rb |
urlscan-0.4.1 | lib/urlscan/commands/pro.rb |
urlscan-0.4.0 | lib/urlscan/commands/pro.rb |