class Interscript::Command
Command
line interface
Public Instance Methods
list()
click to toggle source
# File lib/interscript/command.rb, line 22 def list Interscript.maps(load_path: true).each do |path| puts path end end
translit(input)
click to toggle source
Was this option really well thought out? The last parameter is a cache, isn't it?
option :map, aliases: '-m', required: false, default: “{}”, desc: 'Transliteration mapping json'
# File lib/interscript/command.rb, line 13 def translit(input) if options[:output] Interscript.transliterate_file(options[:system], input, options[:output]) #, JSON.parse(options[:map])) else puts Interscript.transliterate(options[:system], IO.read(input)) end end