this repo has no description
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 1f00a3a0a6cfb2973ed043450bc8c347b721a09e 35 lines 786 B view raw
1mod args; 2mod did; 3 4fn main() -> Result<(), ()> { 5 // load configuration 6 let config = match args::load_config() { 7 Ok(res) => res, 8 Err(_) => { 9 // q 10 return Err(()); 11 } 12 }; 13 println!("{:#?}", config); 14 15 // resolve handle to did 16 let did_doc = match did::get_did(config.handle) { 17 Ok(res) => res, 18 Err(_) => { 19 // q 20 return Err(()); 21 } 22 }; 23 println!("{:#?}", did_doc); 24 // resolve did+repoName to knotserver 25 26 // connect to /events on knotserver 27 28 // on event: 29 // parse json 30 // validate meets expected schema (allow unknown vals) 31 // filter by did and reponame 32 // exec shell command in user shell (/bin/sh as fallback) 33 34 return Ok(()); 35}