use crate::config::{user_cache_directory, user_configuration_directory};
pub fn info() -> Result<(), String> {
let user_configuration_directory = user_configuration_directory();
let user_cache_directory = user_cache_directory();
println!(
"USER_CONFIGURATION_PATH {}",
user_configuration_directory
.map(|path| path.to_string_lossy().to_string())
.unwrap_or("not found".into())
);
println!(
"USER_CACHE_PATH {}",
user_cache_directory
.map(|path| path.to_string_lossy().to_string())
.unwrap_or("not found".into())
);
#[cfg(unix)]
{
use crate::utils::user_runtime_directory;
let user_runtime_directory = user_runtime_directory();
println!(
"USER_RUNTIME_PATH {}",
user_runtime_directory
.map(|path| path.to_string_lossy().to_string())
.unwrap_or("not found".into())
);
}
Ok(())
}