aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw/commands.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-02 22:13:21 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-02 22:13:21 -0500
commit604e09e6ae098350bffe18bde26e1c62f7e88a00 (patch)
treeed40c95a683fa200b11dc3f19accca7eee48ccd5 /src/bin/rbw/commands.rs
parentd149a01bffd2bfdd16e471c8be55f7760c70dd69 (diff)
downloadrbw-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.rs2
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()?;