#!/usr/bin/env ruby
require 'yandex-translator'

translator = Yandex::Translator.new(ENV['yandex_key'])

text = ARGV[0]
lang_from = ARGV[1]
lang_to = ARGV[2]

puts translator.translate text, from: lang_from, to: lang_to 
