Server tools to backfill, tail, mirror, and verify PLC logs

env prefix and use env in readme for sensitive val

+6 -6
+2 -2
readme.md
··· 10 10 - Wrap the reference PLC server and run it as a mirror: 11 11 12 12 ```bash 13 + export ALLEGEDLY_WRAP_PG="postgresql://user:pass@pg-host:5432/plc-db" 13 14 allegedly --upstream "https://plc.directory" mirror \ 14 15 --bind "0.0.0.0:8000" \ 15 - --wrap "http://127.0.0.1:3000" \ 16 - --wrap-pg "postgresql://postgres:postgres@localhost:5432/postgres" 16 + --wrap "http://127.0.0.1:3000" 17 17 ``` 18 18 19 19 (add `--help` to any command for more info about it)
+4 -4
src/bin/allegedly.rs
··· 10 10 #[derive(Debug, Parser)] 11 11 struct Cli { 12 12 /// Upstream PLC server 13 - #[arg(short, long, env)] 13 + #[arg(short, long, env = "ALLEGEDLY_UPSTREAM")] 14 14 #[clap(default_value = "https://plc.directory")] 15 15 upstream: Url, 16 16 #[command(subcommand)] ··· 74 74 /// Wrap a did-method-plc server, syncing upstream and blocking op submits 75 75 Mirror { 76 76 /// the wrapped did-method-plc server 77 - #[arg(long, env)] 77 + #[arg(long, env = "ALLEGEDLY_WRAP")] 78 78 wrap: Url, 79 79 /// the wrapped did-method-plc server's database (write access required) 80 - #[arg(long, env)] 80 + #[arg(long, env = "ALLEGEDLY_WRAP_PG")] 81 81 wrap_pg: Url, 82 82 /// wrapping server listen address 83 - #[arg(short, long, env)] 83 + #[arg(short, long, env = "ALLEGEDLY_BIND")] 84 84 #[clap(default_value = "127.0.0.1:8000")] 85 85 bind: SocketAddr, 86 86 },