aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-02-21 21:57:38 -0500
committerJesse Luehrs <doy@tozt.net>2021-02-21 23:37:43 -0500
commit9b5bc94b5de8c7c1e226887f5e986ecef5967d06 (patch)
tree8113636907b2e2ef6fd6ccbb1553d3d83963ec4f /src/bin/rbw/main.rs
parent0d1ef66412244aa35cde321961006e9ee7735cdf (diff)
downloadrbw-9b5bc94b5de8c7c1e226887f5e986ecef5967d06.tar.gz
rbw-9b5bc94b5de8c7c1e226887f5e986ecef5967d06.zip
persist uri match type when editing
Diffstat (limited to 'src/bin/rbw/main.rs')
-rw-r--r--src/bin/rbw/main.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs
index decdeb4..badff67 100644
--- a/src/bin/rbw/main.rs
+++ b/src/bin/rbw/main.rs
@@ -299,7 +299,11 @@ fn main(opt: Opt) {
} => commands::add(
&name,
user.as_deref(),
- uri.to_vec(),
+ uri.iter()
+ // XXX not sure what the ui for specifying the match type
+ // should be
+ .map(|uri| (uri.clone(), None))
+ .collect::<Vec<_>>(),
folder.as_deref(),
),
Opt::Generate {
@@ -327,7 +331,11 @@ fn main(opt: Opt) {
commands::generate(
name.as_deref(),
user.as_deref(),
- uri.to_vec(),
+ uri.iter()
+ // XXX not sure what the ui for specifying the match type
+ // should be
+ .map(|uri| (uri.clone(), None))
+ .collect::<Vec<_>>(),
folder.as_deref(),
*len,
ty,