Sha256: 82ffef371ae928da337b58d3410093b10806865cda7d702d3c6e1ba3f8e09ace
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require 'broken_link_finder' require 'thor' class BrokenLinkFinderCLI < Thor desc 'crawl [URL]', 'Find broken links at the URL' option :recursive, type: :boolean, aliases: [:r], desc: 'Crawl the entire site' def crawl(url) url = "http://#{url}" unless url.start_with?('http') finder = BrokenLinkFinder::Finder.new options[:recursive] ? finder.crawl_site(url) : finder.crawl_page(url) finder.pretty_print_broken_links end end BrokenLinkFinderCLI.start(ARGV)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
broken_link_finder-0.5.0 | exe/broken_link_finder |
broken_link_finder-0.4.1 | exe/broken_link_finder |
broken_link_finder-0.4.0 | exe/broken_link_finder |