aboutsummaryrefslogtreecommitdiffstats
path: root/examples/zot/item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/zot/item.rs')
-rw-r--r--examples/zot/item.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/zot/item.rs b/examples/zot/item.rs
index eb9013f..e848af2 100644
--- a/examples/zot/item.rs
+++ b/examples/zot/item.rs
@@ -30,6 +30,12 @@ pub fn post(client: &zotapi::Client, args: &ArgMatches) {
msg.file(file);
}
+ if let Some(groups) = dbg!(args.value_of("GROUP")) {
+ for g in groups.split(",") {
+ msg.group_allow(g);
+ }
+ }
+
match msg.create() {
Ok(payload) => {
println!("Raw payload: {}", payload);