feat(notforge): add Gitea API foundation

This commit is contained in:
2026-07-11 23:33:24 -04:00
parent 3a475bc25b
commit 1a3aaf2dd9
12 changed files with 1433 additions and 3 deletions

View File

@@ -79,9 +79,11 @@ pub struct SecretsConfig {
}
pub fn load_config(path: &Path) -> Result<SecretsConfig, SecretsError> {
let content = std::fs::read_to_string(path)
.map_err(|e| SecretsError::Config(format!("cannot read {}: {e}", path.display())))?;
toml::from_str(&content).map_err(|e| SecretsError::Config(format!("parse error: {e}")))
notcore::config::load_toml_file(
path,
|path, err| SecretsError::Config(format!("cannot read {}: {err}", path.display())),
|_path, err| SecretsError::Config(format!("parse error: {err}")),
)
}
#[cfg(test)]