diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-24 10:31:11 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-24 10:31:11 +0200 |
commit | 95ffba343f14d7274e08099b9aca5a85da2259ed (patch) | |
tree | f6a965fcce0a11dbab951e13acef24ab8ab7e9d9 /src/garage/cli/structs.rs | |
parent | 59b43914d4a9ae9a50ae79fee61b1a46bff941f9 (diff) | |
download | garage-95ffba343f14d7274e08099b9aca5a85da2259ed.tar.gz garage-95ffba343f14d7274e08099b9aca5a85da2259ed.zip |
Error reporting
Diffstat (limited to 'src/garage/cli/structs.rs')
-rw-r--r-- | src/garage/cli/structs.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs index f6b2d197..c1ee32ab 100644 --- a/src/garage/cli/structs.rs +++ b/src/garage/cli/structs.rs @@ -476,8 +476,17 @@ pub enum WorkerCmd { /// List all workers on Garage node #[structopt(name = "list")] List { - /// Show only busy workers - #[structopt(short = "b", long = "busy")] - busy: bool, + #[structopt(flatten)] + opt: WorkerListOpt, }, } + +#[derive(Serialize, Deserialize, StructOpt, Debug, Eq, PartialEq, Clone, Copy)] +pub struct WorkerListOpt { + /// Show only busy workers + #[structopt(short = "b", long = "busy")] + pub busy: bool, + /// Show only workers with errors + #[structopt(short = "e", long = "errors")] + pub errors: bool, +} |