feat: Use info! for progress logging
Replaces existing progress_bar.println()
This commit is contained in:
@@ -2,10 +2,7 @@ use clap::Subcommand;
|
||||
use opendal::{Operator, layers::LoggingLayer};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::commands::{
|
||||
connect::s3::{S3Config, S3ConfigCli},
|
||||
upload::uploadable::OperatorBuilder,
|
||||
};
|
||||
use crate::{commands::connect::s3::{S3Config, S3ConfigCli}, operator_builder::OperatorBuilder};
|
||||
|
||||
#[derive(Subcommand, Clone)]
|
||||
pub enum ConfigOptionCli {
|
||||
@@ -18,6 +15,7 @@ pub enum ConfigOption {
|
||||
|
||||
impl ConfigOption {
|
||||
pub fn build(&self) -> anyhow::Result<Operator> {
|
||||
|
||||
Ok(match self {
|
||||
ConfigOption::S3(s3_config) => s3_config.build()?,
|
||||
}
|
||||
|
||||
@@ -3,11 +3,8 @@ use opendal::Operator;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{
|
||||
commands::{
|
||||
connect::{config_option::ConfigOption, configurable::Configure},
|
||||
upload::uploadable::OperatorBuilder,
|
||||
},
|
||||
interactive_variable,
|
||||
commands::connect::{config_option::ConfigOption, configurable::Configure},
|
||||
interactive_variable, operator_builder::OperatorBuilder,
|
||||
};
|
||||
|
||||
#[derive(Args, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user