Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
98 stars 27 forks source link

nk3 secrets: informational output should go to stderr #484

Open spacefrogg opened 10 months ago

spacefrogg commented 10 months ago

Some informational output like the one below is printed to standard out instead of standard error.

https://github.com/Nitrokey/pynitrokey/blob/c88030e050f9d567075f7731a3c69b42c0e53b45/pynitrokey/cli/nk3/secrets.py#L64

When used together with the --password option, it impacts its usefulness in scenarios like the following, where the password shall be copied to the clipboard:

nitropy nk3 secrets get-password --password myPass | xclip

From the code I infer that this might affect other informational lines as well.

Version: 0.4.40