class ImagesToScrapbox::CLI
Public Instance Methods
convert(*globs)
click to toggle source
# File lib/cli.rb, line 44 def convert(*globs) helper_add_paths(globs) ImagesToScrapbox::Converter.perform(true, options) end
helper_add_paths(*globs)
click to toggle source
# File lib/cli.rb, line 9 def helper_add_paths(*globs) if globs.length > 0 globs.each do |glob| ImagesToScrapbox::Converter.add(glob) end else while glob=$stdin.gets ImagesToScrapbox::Converter.add(glob.chomp) end end end
list(*globs)
click to toggle source
# File lib/cli.rb, line 50 def list(*globs) helper_add_paths(globs) ImagesToScrapbox::Converter.perform(FALSE, options) end
version()
click to toggle source
# File lib/cli.rb, line 56 def version p ImagesToScrapbox::VERSION end