diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-04 11:06:58 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-04 11:07:31 +0200 |
commit | 22202d176259d962abdbfdefef1e6213408df06c (patch) | |
tree | e36be72149099d6df45380a81c43c3c39d84fe80 /src/bin | |
parent | cda0e5bde3fa0c9c2cb0b4fa9f21fbb758acfbe1 (diff) | |
download | obnam2-22202d176259d962abdbfdefef1e6213408df06c.tar.gz |
feat: add obnam config subcommand
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/obnam.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/obnam.rs b/src/bin/obnam.rs index 4e38e1a..9c5d3f4 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, get_chunk, list, list_files, restore, show_generation}; +use obnam::cmd::{backup, get_chunk, list, list_files, restore, show_config, show_generation}; use std::path::{Path, PathBuf}; use structopt::StructOpt; @@ -29,6 +29,7 @@ fn main() -> anyhow::Result<()> { 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), + Command::Config => show_config(&config), }; if let Err(ref e) = result { @@ -84,6 +85,7 @@ enum Command { #[structopt()] chunk_id: String, }, + Config, } fn setup_logging(filename: &Path) -> anyhow::Result<()> { |