doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

`rbw get` shouldn't output a newline when piping #85

Closed Witcher01 closed 1 year ago

Witcher01 commented 2 years ago

Calling rbw get also outputs a newline when piped into another program like xclip.

In my opinion this should be avoided to allow nice integration into a shell script, for instance, without having to strip newlines.

Should this be implemented?

ambroisie commented 2 years ago

This could even be gated behing a call to isatty to check if it is used to show the password interactively or as part of a pipeline.

And of course, a command line argument to explicitly get either behaviour.

doy commented 1 year ago

120 should resolve this.