This contribution makes it possible for deepl-translator-cli to get a text to translate directly from the standard input in case no text has been given through the command-line arguments.
This makes it particularly handy to use when combined with other command-line tools that we can pipe together.
Usage
# Using pipes.
$ echo "Il fait beau aujourd'hui" | deepl translate -t EN
# Using direct input.
$ deepl translate -t EN
Il fait beau aujourd'hui
^D
# Using input redirection.
$ deepl translate -t EN < input.txt
Types of changes
[ ] Bugfix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
This contribution makes it possible for
deepl-translator-cli
to get a text to translate directly from the standard input in case no text has been given through the command-line arguments.This makes it particularly handy to use when combined with other command-line tools that we can pipe together.
Usage
Types of changes
Pull request checklist
README
if necessary