update crates
This commit is contained in:
900
Cargo.lock
generated
900
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -13,6 +13,7 @@ use std::{
|
||||
use rust_util::{
|
||||
XResult,
|
||||
util_msg::*,
|
||||
iff,
|
||||
};
|
||||
use oss_util::*;
|
||||
use config_util::*;
|
||||
@@ -26,8 +27,7 @@ use opt::{
|
||||
fn main() -> XResult<()> {
|
||||
let options = Options::new_and_parse_args()?;
|
||||
if options.version {
|
||||
// TODO ...
|
||||
print_message(MessageType::INFO, "VERSION!!!");
|
||||
print_message(MessageType::INFO, "ossbackupd v0.1");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ fn main() -> XResult<()> {
|
||||
// let openpgp_client = OpenPGPTool::from_file("sample.gpg")?;
|
||||
// openpgp_client.encrypt_file("a", "b.asc", true)?;
|
||||
|
||||
let config_json = match get_config_json(if options.config == "" { None } else { Some(&options.config) }, options.verbose) {
|
||||
let config_json = match get_config_json(iff!(options.config.is_empty(), None, Some(&options.config)), options.verbose) {
|
||||
None => return Ok(()),
|
||||
Some(c) => c,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user