ateam 1.0.11

The tool that helps optimize the code review process.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::Deserialize;

#[derive(Deserialize, Debug)]
pub struct Config {
    pub github_api_token: String,
}

pub fn get_config() -> Result<Config, envy::Error> {
    dotenvy::dotenv().ok();
    env_logger::init();
    envy::from_env()
}