Class: Picdown::CLI::Validate

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/picdown/cli/validate.rb

Instance Method Summary collapse

Instance Method Details

#call(path:) ⇒ Object



10
11
12
13
# File 'lib/picdown/cli/validate.rb', line 10

def call(path:, **)
  sources = Picdown::SourceFile.load(path)
  print_results(sources)
end