tadfisher / pass-otp

A pass extension for managing one-time-password (OTP) tokens
GNU General Public License v3.0
1.28k stars 85 forks source link

Add support for quiet output of otp code command #105

Closed nertpinx closed 3 years ago

nertpinx commented 5 years ago

When using this option the output of pass otp -q ... is predictable and can be further used without parsing even when the password store is a repository as well. This is useful, for example, when using rofi-pass.

The patch is written in a way that other commands can optionally use the quiet option for otp_insert as well.

nertpinx commented 5 years ago

I am fine with changing this to just redirect the output of otp_insert in cmd_otp_usage itself if that is the preferred way.

nertpinx commented 4 years ago

@tadfisher any chance this could get a review?