From 2938409cff80d66b4b9f672ab48d2d93822c4aa2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 20 Mar 2022 07:53:06 +0200 Subject: feat: add subcommands inspect, list-backup-versions Sponsored-by: author --- src/bin/obnam.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/bin/obnam.rs') diff --git a/src/bin/obnam.rs b/src/bin/obnam.rs index 21add9c..15c7d06 100644 --- a/src/bin/obnam.rs +++ b/src/bin/obnam.rs @@ -8,7 +8,9 @@ use obnam::cmd::chunkify::Chunkify; use obnam::cmd::gen_info::GenInfo; use obnam::cmd::get_chunk::GetChunk; use obnam::cmd::init::Init; +use obnam::cmd::inspect::Inspect; use obnam::cmd::list::List; +use obnam::cmd::list_backup_versions::ListSchemaVersions; use obnam::cmd::list_files::ListFiles; use obnam::cmd::resolve::Resolve; use obnam::cmd::restore::Restore; @@ -41,7 +43,9 @@ fn main_program() -> anyhow::Result<()> { match opt.cmd { Command::Init(x) => x.run(&config), + Command::ListBackupVersions(x) => x.run(&config), Command::Backup(x) => x.run(&config), + Command::Inspect(x) => x.run(&config), Command::Chunkify(x) => x.run(&config), Command::List(x) => x.run(&config), Command::ShowGeneration(x) => x.run(&config), @@ -101,8 +105,10 @@ struct Opt { enum Command { Init(Init), Backup(Backup), + Inspect(Inspect), Chunkify(Chunkify), List(List), + ListBackupVersions(ListSchemaVersions), ListFiles(ListFiles), Restore(Restore), GenInfo(GenInfo), -- cgit v1.2.1