diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-01-04 18:03:04 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-01-04 18:03:04 +0000 |
commit | 678e65c57ae983ef66d16e92965814b0f3f0d73f (patch) | |
tree | 260f2edd09047de5843a168ce59f284ac3445ce7 /src/bin/obnam.rs | |
parent | 6c00201a0aaf75071388981591d76bebdc7b1f03 (diff) | |
parent | 34a9fc7cf754552b02b194f7e1186adc9414a623 (diff) | |
download | obnam2-678e65c57ae983ef66d16e92965814b0f3f0d73f.tar.gz |
Merge branch 'checksum' into 'main'
Checksum
See merge request larswirzenius/obnam!61
Diffstat (limited to 'src/bin/obnam.rs')
-rw-r--r-- | src/bin/obnam.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/obnam.rs b/src/bin/obnam.rs index f31884b..e5703ed 100644 --- a/src/bin/obnam.rs +++ b/src/bin/obnam.rs @@ -2,7 +2,7 @@ use log::{debug, error, info, LevelFilter}; use log4rs::append::file::FileAppender; use log4rs::config::{Appender, Config, Logger, Root}; use obnam::client::ClientConfig; -use obnam::cmd::{backup, list, list_files, restore}; +use obnam::cmd::{backup, get_chunk, list, list_files, restore}; use std::path::{Path, PathBuf}; use structopt::StructOpt; @@ -23,6 +23,7 @@ fn main() -> anyhow::Result<()> { Command::List => list(&config), Command::ListFiles { gen_id } => list_files(&config, &gen_id), Command::Restore { gen_id, to } => restore(&config, &gen_id, &to), + Command::GetChunk { chunk_id } => get_chunk(&config, &chunk_id), }; if let Err(ref e) = result { @@ -60,6 +61,10 @@ enum Command { #[structopt(parse(from_os_str))] to: PathBuf, }, + GetChunk { + #[structopt()] + chunk_id: String, + }, } fn setup_logging(filename: &Path) -> anyhow::Result<()> { |