diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-08 09:06:08 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-08 09:06:08 +0100 |
| commit | 158044c320ef328ffad0a150d50b40e103d3f685 (patch) | |
| tree | 60579fe23c778208f6213090c9e50bed34bb285e /src/config.rs | |
| parent | 1277a0733f812fcc84a746cedb16c1317036988e (diff) | |
replaces git repo config with routes config
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/config.rs b/src/config.rs deleted file mode 100644 index 5d17bfc..0000000 --- a/src/config.rs +++ /dev/null @@ -1,24 +0,0 @@ -use std::path::PathBuf; - -use anyhow::Context; -use serde::Deserialize; - -pub fn read_config(path: &PathBuf) -> anyhow::Result<Config> { - let toml = std::fs::read(path) - .with_context(|| format!("Failed to read config file at {:#?}", path))?; - let config = toml::from_slice(&toml) - .with_context(|| format!("Failed to parse config file at {:#?}", path))?; - Ok(config) -} - -#[derive(Debug, Default, Deserialize)] -pub struct Config { - pub repositories: Vec<RepoConfig>, -} - -#[derive(Debug, Deserialize)] -pub struct RepoConfig { - pub remote_git_repo: String, - pub local_git_repo: String, - pub remote_package_repo: String, -} |
