feat: Add --digest CLI option to select digest type

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 19:10:12 -03:00
parent a3a4c49e31
commit b1bfa7110b
3 changed files with 48 additions and 1 deletions

View File

@@ -105,9 +105,17 @@ struct ItemArgs {
#[arg(help("Set metadata for the item using the format KEY=[VALUE], the metadata will be removed if VALUE is not provided"))]
meta: Vec<KeyValue>,
#[arg(help_heading("Item Options"), short, long, env("KEEP_DIGEST"))]
#[arg(help("Digest algorithm to use when saving items"))]
digest: Option<String>,
#[arg(help_heading("Item Options"), short, long, env("KEEP_COMPRESSION"))]
#[arg(help("Compression algorithm to use when saving items"))]
compression: Option<String>,
#[arg(help_heading("Item Options"), short, long, env("KEEP_DIGEST"))]
#[arg(help("Digest algorithm to use when saving items"))]
digest: Option<String>,
}
#[derive(Parser, Debug)]