Crates.io | ad_event |
lib.rs | ad_event |
version | 0.2.0 |
source | src |
created_at | 2024-10-02 07:04:51.384054 |
updated_at | 2024-11-15 19:51:03.798378 |
description | A shared event format for ad and its clients |
homepage | |
repository | https://github.com/sminez/ad/crates/ad_event |
max_upload_size | |
id | 1393775 |
size | 7,470 |
M L 160 173 14 | screenshot.png
{"source":"M","kind":"L","ch_from":169,"ch_to":173,"truncated":false,"txt":"screenshot.png"}
#!/usr/bin/env sh
9p read ad/buffers/1/event | while read -r line; do
echo "got event: $line"
txt=$(echo "$line" | jq -r '.txt')
if [ "$txt" = "README.md" ]; then
echo " > allowing event"
echo "$line" | 9p write ad/buffers/1/event
else
echo " > suppressing event"
fi
done