pub async fn init() -> Option<AppConfig> {
    // hardcoded files to check for settings
    // TODO: make it variable (through CLI parameters probably)
    const FILES: [&str; 2] = ["./settings.yaml", "./settings.json"];
    let conf = AppConfig::try_files(&FILES).await;

    // if successfully loaded, then log it cause why not
    if let Some(conf) = &conf {
        log::info!("loaded configuration: {:?}", conf);
    }
    conf
}
/// Asyncronously finds and parses the Application Configuration file and returns it if successful.
///
/// Currently tries `settings.yaml` and `settings.json` looking for the configuration. If
/// completely successful, it will return `Some(AppConfig)` otherwise `None`.
Asyncronously finds and parses the Application Configuration file and returns it if successful.
Asyncronously finds and parses the Application Configuration file and returns it if successful .
pub async fn init() -> Option<AppConfig> {
    // hardcoded files to check for settings
    // TODO: make it variable (through CLI parameters probably)
    const FILES: [&str; 2] = ["./settings.yaml", "./settings.json"];
    let conf = AppConfig::try_files(&FILES).await;
    // if successfully loaded, then log it cause why not
    if let Some(conf) = &conf {
        log::info!("loaded configuration: {:?}", conf);
    }
    conf
}
pub async fn init ( ) -> Option < AppConfig > { // hardcoded files to check for settings // TODO: make it variable (through CLI parameters probably) const FILES : [ & str ; 2 ] = [ " " , " " ] ; let conf = AppConfig :: try_files ( & FILES ) . await ; // if successfully loaded, then log it cause why not if let Some ( conf ) = & conf { log :: info ! ( " " conf ) ; } conf }
Asyncronously finds and parses the Application Configuration file and returns it if successful.
Asyncronously finds and parses the Application Configuration file and returns it if successful .