aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli/structs.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-04 13:25:57 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-04 13:25:57 +0100
commit29dbcb82780dcdb6f2a01a9da5122e70abaf93bf (patch)
tree222ec61f03c5abcca6678239111e94ad4dcfeb67 /src/garage/cli/structs.rs
parentf3f27293df83986ba29fb03f8af26a2177518e20 (diff)
downloadgarage-29dbcb82780dcdb6f2a01a9da5122e70abaf93bf.tar.gz
garage-29dbcb82780dcdb6f2a01a9da5122e70abaf93bf.zip
bg var operation on all nodes at onceworker-get
Diffstat (limited to 'src/garage/cli/structs.rs')
-rw-r--r--src/garage/cli/structs.rs18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs
index 08cb7769..661a71f0 100644
--- a/src/garage/cli/structs.rs
+++ b/src/garage/cli/structs.rs
@@ -519,10 +519,24 @@ pub enum WorkerOperation {
Info { tid: usize },
/// Get worker parameter
#[structopt(name = "get", version = garage_version())]
- Get { variable: Option<String> },
+ Get {
+ /// Gather variable values from all nodes
+ #[structopt(short = "a", long = "all-nodes")]
+ all_nodes: bool,
+ /// Variable name to get, or none to get all variables
+ variable: Option<String>,
+ },
/// Set worker parameter
#[structopt(name = "set", version = garage_version())]
- Set { variable: String, value: String },
+ Set {
+ /// Set variable values on all nodes
+ #[structopt(short = "a", long = "all-nodes")]
+ all_nodes: bool,
+ /// Variable node to set
+ variable: String,
+ /// Value to set the variable to
+ value: String,
+ },
}
#[derive(Serialize, Deserialize, StructOpt, Debug, Eq, PartialEq, Clone, Copy)]