Class: Langulator::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/langulator/cli.rb

Instance Method Summary collapse

Instance Method Details

#compileObject



12
13
14
15
16
17
18
19
20
# File 'lib/langulator/cli.rb', line 12

def compile
  compile_options = {
    :source_language => options[:source_language].to_sym,
    :target_languages => options[:target_languages].map(&:to_sym),
    :base_path => options[:base_path],
    :to => options[:file]
  }
  Langulator.compile(compile_options)
end

#decompileObject



24
25
26
# File 'lib/langulator/cli.rb', line 24

def decompile
  Langulator.decompile(:from => options[:file])
end