use {super::config_type::ConfigType, crate::utils::tgt_config_dir, std::io};
pub mod app_custom;
pub mod keymap_custom;
pub mod logger_custom;
pub mod palette_custom;
pub mod telegram_custom;
pub mod theme_custom;
fn default_config_file_path_of(config_type: ConfigType) -> io::Result<String> {
Ok(tgt_config_dir()?
.join(config_type.as_default_filename())
.to_str()
.unwrap()
.to_string())
}
pub fn default_config_logger_file_path() -> io::Result<String> {
default_config_file_path_of(ConfigType::Logger)
}
pub fn default_config_keymap_file_path() -> io::Result<String> {
default_config_file_path_of(ConfigType::Keymap)
}
pub fn default_config_app_file_path() -> io::Result<String> {
default_config_file_path_of(ConfigType::App)
}
pub fn default_config_theme_file_path() -> io::Result<String> {
default_config_file_path_of(ConfigType::Theme)
}
pub fn default_config_palette_file_path() -> io::Result<String> {
default_config_file_path_of(ConfigType::Palette)
}
pub fn default_config_telegram_file_path() -> io::Result<String> {
default_config_file_path_of(ConfigType::Telegram)
}