From 44f0f76c906d3fabe592958c208c0782a1d9305a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 19 Apr 2020 20:26:35 -0400 Subject: allow creating entries with associated uris --- src/actions.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/actions.rs') diff --git a/src/actions.rs b/src/actions.rs index 0a5bee4..f0d5d21 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -77,9 +77,10 @@ pub fn add( username: Option<&str>, password: Option<&str>, notes: Option<&str>, + uris: &[String], ) -> Result<(Option, ())> { with_exchange_refresh_token(access_token, refresh_token, |access_token| { - add_once(access_token, name, username, password, notes) + add_once(access_token, name, username, password, notes, uris) }) } @@ -89,11 +90,12 @@ fn add_once( username: Option<&str>, password: Option<&str>, notes: Option<&str>, + uris: &[String], ) -> Result<()> { let config = crate::config::Config::load()?; let client = crate::api::Client::new(&config.base_url(), &config.identity_url()); - client.add(access_token, name, username, password, notes)?; + client.add(access_token, name, username, password, notes, uris)?; Ok(()) } -- cgit v1.2.3-54-g00ecf