CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/anemone/cli.rb
Views: 11766
1
module Anemone
2
module CLI
3
COMMANDS = %w[count cron pagedepth serialize url-list]
4
5
def self.run
6
command = ARGV.shift
7
8
if COMMANDS.include? command
9
load "anemone/cli/#{command.tr('-', '_')}.rb"
10
else
11
puts <<-INFO
12
Anemone is a web spider framework that can collect
13
useful information about pages it visits.
14
15
Usage:
16
anemone <command> [arguments]
17
18
Commands:
19
#{COMMANDS.join(', ')}
20
INFO
21
end
22
end
23
end
24
end
25
26