Sha256: a8b30891e5e2184f8c5e0ef5fb3f6d9a9a95b88982b871971bf1d7e0a9aeb689

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

require "thor"

module Osakana
  class CLI < Thor
    desc "check_newly_domains [KEYWORD]", "check newly registered domains on DNPedia by a given keyword"
    def check_newly_domains(keyword)
      Monitor.check_newly_domains(keyword)
    end

    desc "censys_lookup [QUERY]", "lookup on Censys by a given query"
    def censys_lookup(query)
      Monitor.censys_lookup(query)
    end

    no_commands do
      def with_error_handling
        yield
      rescue StandardError => e
        puts "Warning: #{e}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
osakana-0.1.1 lib/osakana/cli.rb
osakana-0.1.0 lib/osakana/cli.rb