2022-12-02 23:41:50 +00:00
|
|
|
use config::CliConfig;
|
2023-03-11 06:58:42 +00:00
|
|
|
use dirs::home_dir;
|
2022-12-02 23:41:50 +00:00
|
|
|
use eyre::Result;
|
|
|
|
|
|
|
|
use helios::prelude::*;
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() -> Result<()> {
|
|
|
|
// Load the config from the global config file
|
2023-03-11 06:58:42 +00:00
|
|
|
let config_path = home_dir().unwrap().join(".helios/helios.toml");
|
2022-12-02 23:41:50 +00:00
|
|
|
let config = Config::from_file(&config_path, "mainnet", &CliConfig::default());
|
2022-12-04 20:28:44 +00:00
|
|
|
println!("Constructed config: {config:#?}");
|
2022-12-02 23:41:50 +00:00
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|