blob: 9335cca33bb3c2556632cc9e6aed337e1fe08cfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use std::path::Path;
use serde::Deserialize;
pub fn ssh_user() -> &'static str {
return "git";
}
pub fn binary_path() -> &'static str {
return "/opt/fagit/fagit";
}
pub fn repo_store() -> &'static Path {
return Path::new("/opt/fagit/store/");
}
#[derive(Deserialize, Default)]
pub struct RepoConfig {
pub access: Vec<KeyPermission>,
}
#[derive(Deserialize)]
pub struct KeyPermission {
key: String,
}
|