From 5ad7b51d22412f829f28c9f8047cacf7bb3a866a Mon Sep 17 00:00:00 2001 From: afterlifepro Date: Fri, 5 Sep 2025 16:45:35 +0100 Subject: [PATCH] Block out flow --- src/main.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 22eef8a..8c33708 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,16 @@ fn main() -> Result<(), i32> { - println!("Hello, world!"); + // load configuration + + // resolve handle to did + // resolve did+repoName to knotserver + + // connect to /events on knotserver + + // on event: + // parse json + // validate meets expected schema (allow unknown vals) + // filter by did and reponame + // exec shell command in user shell (/bin/sh as fallback) return Ok(()) } -- 2.51.2