class

DeepL::CLI

Inherits Reference < Object

Constants

ANSI_ESCAPE_REGEX = Regex.new("(?:\e[@-Z\\-_]|[\\x80-\\x9A\\x9C-\\x9F]|(?:\e\\[|\\x9B)[0-?]*[ -/]*[@-~])")
BASE_VERSION_STRING = if Translator::DEEPL_SERVER_URL != Translator::DEEPL_DEFAULT_SERVER_URL "deepl-cli #{VERSION} (#{Translator::DEEPL_SERVER_URL})" elsif Translator::DEEPL_SERVER_URL_FREE != Translator::DEEPL_DEFAULT_SERVER_URL_FREE "deepl-cli #{VERSION} (#{Translator::DEEPL_SERVER_URL_FREE})" else "deepl-cli #{VERSION}" end
VERSION = {{ (`shards version /tmp/tmp.DeFmgk/src/src/deepl/cli`).chomp.stringify }}
VERSION_STRING = {% if flag?(:clipboard) %} BASE_VERSION_STRING {% else %} "#{BASE_VERSION_STRING} (clipboard disabled)" {% end %}

Constructors

Class methods

debug=(debug : Bool)
Source
debug?
Source

Instance methods

argv_or_select_id_from_glossary_list_long
Source
argv_or_select_name_from_glossary_list
Source
check_document_translation_status
Source
correct_text
Source
create_glossary
Source
delete_glossary_by_id
Source
delete_glossary_by_name
Source
download_translated_document
Source
edit_glossary_by_id
Source
edit_glossary_by_name
Source
edit_glossary_core(translator, glossary_info)
Source
option
Source
output_glossary_entries_by_id
Source
output_glossary_entries_by_name
Source
parser
Source
rephrase_text
Source
select_id_from_glossary_list_long
Source
select_name_from_glossary_list
Source
translate_document
Source
translate_text
Source
upload_document_to_translate
Source