Move commands to lib.rs

This commit is contained in:
Lennart K
2026-01-27 23:06:57 +01:00
parent 8b2bb1b0d6
commit 8ab9c61b0f
8 changed files with 187 additions and 163 deletions

View File

@@ -7,6 +7,7 @@ pub struct HealthArgs {}
/// Healthcheck for running rustical instance
/// Currently just pings to see if it's reachable via HTTP
#[allow(clippy::missing_errors_doc, clippy::missing_panics_doc)]
pub async fn cmd_health(http_config: HttpConfig, _health_args: HealthArgs) -> anyhow::Result<()> {
let client = reqwest::ClientBuilder::new().build().unwrap();