add verbose
This commit is contained in:
20
src/main.rs
20
src/main.rs
@@ -36,11 +36,9 @@ fn main() -> XResult<()> {
|
||||
println!("Hello, world!");
|
||||
println!("{}", SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs());
|
||||
|
||||
let oss_client = OSSClient::new("oss-cn-shanghai.aliyuncs.com", "", "");
|
||||
|
||||
let c = oss_client.get_file_content("hatterbucket", "Check.java")?;
|
||||
|
||||
println!("XXXXX: {:?}", c);
|
||||
// let oss_client = OSSClient::new("oss-cn-shanghai.aliyuncs.com", "", "");
|
||||
// let c = oss_client.get_file_content("hatterbucket", "Check.java")?;
|
||||
// println!("XXXXX: {:?}", c);
|
||||
// println!("XXXXX: {}", );
|
||||
|
||||
// zip_util::zip_file("hello.txt", "aa.zip")?;
|
||||
@@ -48,10 +46,14 @@ fn main() -> XResult<()> {
|
||||
// let openpgp_client = OpenPGPTool::from_file("sample.gpg")?;
|
||||
// openpgp_client.encrypt_file("a", "b.asc", true)?;
|
||||
|
||||
let config_json = get_config_json(if options.config == "" { None } else { Some(&options.config) });
|
||||
if config_json.is_none() {
|
||||
return Ok(());
|
||||
}
|
||||
let config_json = match get_config_json(if options.config == "" { None } else { Some(&options.config) }, options.verbose) {
|
||||
None => return Ok(()),
|
||||
Some(c) => c,
|
||||
};
|
||||
|
||||
let oss_backupd_config = parse_config(&config_json);
|
||||
|
||||
println!("{:?}", &oss_backupd_config);
|
||||
|
||||
// TODO ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user