aboutsummaryrefslogtreecommitdiff
path: root/src/garage/main.rs
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-12-10 18:13:32 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-12-10 18:13:32 +0100
commit51d0c14e440f00f24dbed6c3bce915a183a2bb65 (patch)
tree8f9b8aabaf898c64c9e40de03a3b73dc000becf2 /src/garage/main.rs
parent986e15459ae510a11629765209bad46e379fc72b (diff)
downloadgarage-51d0c14e440f00f24dbed6c3bce915a183a2bb65.tar.gz
garage-51d0c14e440f00f24dbed6c3bce915a183a2bb65.zip
CLI structure
Diffstat (limited to 'src/garage/main.rs')
-rw-r--r--src/garage/main.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/garage/main.rs b/src/garage/main.rs
index 1185871f..7996d1f9 100644
--- a/src/garage/main.rs
+++ b/src/garage/main.rs
@@ -141,6 +141,21 @@ pub enum BucketOperation {
/// Allow key to read or write to bucket
#[structopt(name = "deny")]
Deny(PermBucketOpt),
+
+ /// Expose as website or not
+ #[structopt(name = "website")]
+ Website(WebsiteOpt),
+}
+
+#[derive(Serialize, Deserialize, StructOpt, Debug)]
+pub struct WebsiteOpt {
+ /// Create
+ #[structopt(long = "create")]
+ pub create: bool,
+
+ /// Delete
+ #[structopt(long = "delete")]
+ pub delete: bool,
}
#[derive(Serialize, Deserialize, StructOpt, Debug)]