aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-13 15:02:42 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-13 15:02:42 +0100
commitd7f90cabb0517a50a6c3dd702852770240566bfc (patch)
tree5c6f99f1dfb6c3187a1dd28a507b88c65a8dc039 /src/garage/cli
parent687660b27f904422c689e09d2457293e5313d325 (diff)
downloadgarage-d7f90cabb0517a50a6c3dd702852770240566bfc.tar.gz
garage-d7f90cabb0517a50a6c3dd702852770240566bfc.zip
Implement `block retry-now` and `block purge`
Diffstat (limited to 'src/garage/cli')
-rw-r--r--src/garage/cli/structs.rs1
-rw-r--r--src/garage/cli/util.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs
index 6d74b1a4..e2f632f3 100644
--- a/src/garage/cli/structs.rs
+++ b/src/garage/cli/structs.rs
@@ -575,6 +575,7 @@ pub enum BlockOperation {
#[structopt(long = "yes")]
yes: bool,
/// Hashes of the block to purge
+ #[structopt(required = true)]
blocks: Vec<String>,
},
}
diff --git a/src/garage/cli/util.rs b/src/garage/cli/util.rs
index 737b54b2..63fd9eba 100644
--- a/src/garage/cli/util.rs
+++ b/src/garage/cli/util.rs
@@ -382,7 +382,7 @@ pub fn print_block_info(hash: Hash, refcount: u64, versions: Vec<Result<Version,
println!("Refcount: {}", refcount);
println!();
- let mut table = vec!["Version\tBucket\tPath\tDeleted".into()];
+ let mut table = vec!["Version\tBucket\tKey\tDeleted".into()];
let mut nondeleted_count = 0;
for v in versions.iter() {
match v {