From 158044c320ef328ffad0a150d50b40e103d3f685 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 8 Jun 2026 09:06:08 +0100 Subject: replaces git repo config with routes config --- src/config.rs | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/config.rs (limited to 'src/config.rs') 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 { - 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, -} - -#[derive(Debug, Deserialize)] -pub struct RepoConfig { - pub remote_git_repo: String, - pub local_git_repo: String, - pub remote_package_repo: String, -} -- cgit v1.2.3