diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-02 22:13:21 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-02 22:13:21 -0500 |
commit | 604e09e6ae098350bffe18bde26e1c62f7e88a00 (patch) | |
tree | ed40c95a683fa200b11dc3f19accca7eee48ccd5 /src/bin/rbw/commands.rs | |
parent | d149a01bffd2bfdd16e471c8be55f7760c70dd69 (diff) | |
download | rbw-604e09e6ae098350bffe18bde26e1c62f7e88a00.tar.gz rbw-604e09e6ae098350bffe18bde26e1c62f7e88a00.zip |
make the pinentry program configurable
Diffstat (limited to 'src/bin/rbw/commands.rs')
-rw-r--r-- | src/bin/rbw/commands.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index 3f11174..2da06a2 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -425,6 +425,7 @@ pub fn config_set(key: &str, value: &str) -> anyhow::Result<()> { config.lock_timeout = timeout; } } + "pinentry" => config.pinentry = value.to_string(), _ => return Err(anyhow::anyhow!("invalid config key: {}", key)), } config.save()?; @@ -449,6 +450,7 @@ pub fn config_unset(key: &str) -> anyhow::Result<()> { "lock_timeout" => { config.lock_timeout = rbw::config::default_lock_timeout() } + "pinentry" => config.pinentry = rbw::config::default_pinentry(), _ => return Err(anyhow::anyhow!("invalid config key: {}", key)), } config.save()?; |