aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs6
1 files changed, 4 insertions, 2 deletions
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<String>, ())> {
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(())
}