Skip to content

CUI wrapper for the Translating text API of DeepL

Notifications You must be signed in to change notification settings

tokorom/deepl-cui-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deepl-cui-swift

CUI wrapper for the Translating text API of DeepL.

help

USAGE: command [<text>] [--source-lang <source-lang>] [--target-lang <target-lang>] [--auth-key <auth-key>]

ARGUMENTS:
  <text>                  Text to be translated. If not specified, use STDIN. 

OPTIONS:
  -s, --source-lang <source-lang>
                          Language of the text to be translated. If this
                          parameter is omitted, the API will attempt to detect
                          the language of the text and translate it. 
  -t, --target-lang <target-lang>
                          The language into which the text should be translated
                          (default: EN-US)
  --auth-key <auth-key>   authKey for DeepL API. If not specified, use the
                          environment variable DEEPL_AUTH_KEY. 
  -h, --help              Show help information.

API Domain

Version 1.0.0 or later uses api-free.deepl.com

Simple USAGE

with arguments

deepl-cui-swift --auth-key YOUR_AUTH_KEY おはよう

with STDIN and ENV

echo おはよう | DEEPL_AUTH_KEY=YOUR_AUTH_KEY deepl-cui-swift

About

CUI wrapper for the Translating text API of DeepL

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages