Bon, je me suis aperçu que j'avais omis d'utiliser
sudo dans cette commande :
yarn global add deepl-translator-cli
Une fois la chose faite, si je lance
whereis :
lool@lool-W510:~$ whereis deepl
deepl: /usr/local/bin/deepl
lool@lool-W510:~$
Et si je lance :
lool@lool-W510:~$ deepl --version
1.1.2
lool@lool-W510:~$
Ça a l'air de fonctionner.
Cependant quand je lance le programme :
lool@lool-W510:~$ deepl translate -t 'FR' "how are you ?"
deepl-translate(1) does not exist, try --help
lool@lool-W510:~$
ça ne fonctionne pas
Pourtant dans l'aide :
lool@lool-W510:~$ deepl -h
Usage: deepl [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
translate <text> translates the text to a target language
detect <text> detects the text language
help [cmd] display help for [cmd]
lool@lool-W510:~$