async fn load_events(path: Option<&str>) -> Result<Events, Report> {
    if let Some(path) = path {
        Events::load_events(path).await
    } else {
        let config = Config::from_file()?;
        Events::load_events(&config.events).await
    }
}
/// Load events from the given file, directory or URL, or from the one in the config file if no path
/// is provided.
Load events from the given file, directory or URL, or from the one in the config file if no path
is provided.
Load events from the given file directory or URL or from the one in the config file if no path is provided .
async fn load_events(path: Option<&str>) -> Result<Events, Report> {
    if let Some(path) = path {
        Events::load_events(path).await
    } else {
        let config = Config::from_file()?;
        Events::load_events(&config.events).await
    }
}
async fn load_events ( path : Option < & str > ) -> Result < Events , Report > { if let Some ( path ) = path { Events :: load_events ( path ) . await } else { let config = Config :: from_file ( ) ? ; Events :: load_events ( & config . events ) . await } }
Load events from the given file, directory or URL, or from the one in the config file if no path
is provided.
Load events from the given file directory or URL or from the one in the config file if no path is provided .
path
Option<&str>
path
Option<&str>