diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-03-20 07:53:06 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-03-20 10:53:46 +0200 |
commit | 2938409cff80d66b4b9f672ab48d2d93822c4aa2 (patch) | |
tree | ddd2d24aa6399a97d877174fd01e3b69df57b732 /src/bin/obnam.rs | |
parent | f309f897a06f2870aac386f6218b939e86ed89ba (diff) | |
download | obnam2-2938409cff80d66b4b9f672ab48d2d93822c4aa2.tar.gz |
feat: add subcommands inspect, list-backup-versions
Sponsored-by: author
Diffstat (limited to 'src/bin/obnam.rs')
-rw-r--r-- | src/bin/obnam.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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), |