AIAOOFVESYTTBSDYTH2XRTLPXNT7XAMVTQJISJ7DI3AV4E7O4Z6AC
println!("user config file path: {:?}", user_config_path);
}
if let Some(config_path) = cli.config.as_deref() {
println!("Value for config: {}", config_path.display());
let y: &str = user_config_path.as_os_str().to_str().unwrap_or_default();
let config = cli::config::VFxPRConfigFile::new(y);
println!("user config file path: {}", config);
} else {
if let Some(config_path) = cli.config.as_deref() {
let y: &str = config_path.as_os_str().to_str().unwrap_or_default();
let config = cli::config::VFxPRConfigFile::new(y);
println!("user config file path: {}", config);
// println!("Value for config: {:?}", config_path.display());
}
//println!("user config file path: {}", config);
fn get_default_config() -> Option<std::path::PathBuf> {
impl Default for VFxPRConfigFile{
fn default() -> Self {
Self{config_path: get_default_config(),
config_type: VFxPRConfigType::Local,}
}
}
impl Display for VFxPRConfigFile{
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
if let Some(file_path) = &self.config_path {
write!(f, "{:?}",file_path)
} else {
write!(f, "No file found")
}
}
}
impl VFxPRConfigFile{
pub fn new(s: &str) -> Self {
Self {
config_path: Some(PathBuf::from(s)),
config_type: VFxPRConfigType::Sourced,
}
}
}
fn get_default_config() -> Option<PathBuf> {