Class: WhatWeb::CLI

Inherits:
Thor show all
Defined in:
lib/whatweb/cli.rb

Instance Method Summary collapse

Instance Method Details

#list_pluginsObject



22
23
24
25
26
# File 'lib/whatweb/cli.rb', line 22

def list_plugins
  with_error_handling do
    puts plugin_names.to_json
  end
end

#scan(url) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/whatweb/cli.rb', line 11

def scan(url)
  user_agent = options[:user_agent]
  is_aggressive = options[:aggressive]

  with_error_handling do
    hash = execute_plugins(url, user_agent: user_agent, is_aggressive: is_aggressive)
    puts hash.to_json
  end
end