lib/nanoc/cli/commands/validate-links.rb in nanoc-3.7.4 vs lib/nanoc/cli/commands/validate-links.rb in nanoc-3.7.5
- old
+ new
@@ -10,22 +10,18 @@
flag :i, :internal, 'validate internal links only'
flag :e, :external, 'validate external links only'
module Nanoc::CLI::Commands
-
class ValidateLinks < ::Nanoc::CLI::CommandRunner
-
def run
warn 'The `validate-links` command is deprecated. Please use the new `check` command instead.'
checks = []
checks << 'ilinks' if options[:internal]
checks << 'elinks' if options[:external]
Nanoc::CLI.run ['check', checks].flatten
end
-
end
-
end
runner Nanoc::CLI::Commands::ValidateLinks