1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::Deserialize;

#[derive(Deserialize, Debug, Clone, Copy)]
pub struct Config {
  pub _ed_show_index: Option<usize>,
  pub _ed_view_file_contents: Option<usize>,
}

impl Config {
  pub fn new() -> anyhow::Result<Self> {
    Ok(envy::from_env::<Self>()?)
  }
}