aboutsummaryrefslogtreecommitdiff
path: root/src/garage/main.rs
diff options
context:
space:
mode:
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)]