summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-07-14 15:59:56 +0300
committerLars Wirzenius <liw@liw.fi>2021-07-18 10:02:33 +0300
commit5d016c96c8b2b3290d25baa838c8816edeecab8a (patch)
tree9779e63d2a26423386fbe64b518d3c9b01f972ae /src/bin
parentb2a3a0999d6085d20419d9794b89ab9b0ada0124 (diff)
downloadobnam2-5d016c96c8b2b3290d25baa838c8816edeecab8a.tar.gz
feat: add "chunkify" subcommand
Sponsored-by: author
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/obnam.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/obnam.rs b/src/bin/obnam.rs
index 9739501..29de2eb 100644
--- a/src/bin/obnam.rs
+++ b/src/bin/obnam.rs
@@ -4,6 +4,7 @@ use log4rs::append::file::FileAppender;
use log4rs::config::{Appender, Logger, Root};
use obnam::cmd::backup::Backup;
use obnam::cmd::chunk::{DecryptChunk, EncryptChunk};
+use obnam::cmd::chunkify::Chunkify;
use obnam::cmd::get_chunk::GetChunk;
use obnam::cmd::init::Init;
use obnam::cmd::list::List;
@@ -39,6 +40,7 @@ fn main_program() -> anyhow::Result<()> {
match opt.cmd {
Command::Init(x) => x.run(&config),
Command::Backup(x) => x.run(&config),
+ Command::Chunkify(x) => x.run(&config),
Command::List(x) => x.run(&config),
Command::ShowGeneration(x) => x.run(&config),
Command::ListFiles(x) => x.run(&config),
@@ -95,6 +97,7 @@ struct Opt {
enum Command {
Init(Init),
Backup(Backup),
+ Chunkify(Chunkify),
List(List),
ListFiles(ListFiles),
Restore(Restore),