aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw/commands.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-07-25 04:33:51 -0400
committerJesse Luehrs <doy@tozt.net>2020-07-25 04:33:51 -0400
commit6b38682d711fb74feddcc06c4da18f8e771858df (patch)
tree52c36bba21247f0abb7062f87e3e0745dd496b4f /src/bin/rbw/commands.rs
parent56e9b720bade5dcdc6505952c1bf81bdeca26bcd (diff)
downloadrbw-6b38682d711fb74feddcc06c4da18f8e771858df.tar.gz
rbw-6b38682d711fb74feddcc06c4da18f8e771858df.zip
implement rbw unlocked
Diffstat (limited to 'src/bin/rbw/commands.rs')
-rw-r--r--src/bin/rbw/commands.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs
index e5858b6..f514153 100644
--- a/src/bin/rbw/commands.rs
+++ b/src/bin/rbw/commands.rs
@@ -466,6 +466,13 @@ pub fn unlock() -> anyhow::Result<()> {
Ok(())
}
+pub fn unlocked() -> anyhow::Result<()> {
+ ensure_agent()?;
+ crate::actions::unlocked()?;
+
+ Ok(())
+}
+
pub fn sync() -> anyhow::Result<()> {
ensure_agent()?;
crate::actions::login()?;