From 163aac7fc63400e63816ac26d877a9a680a56c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Tue, 16 Jan 2024 13:40:48 +0100 Subject: [PATCH] dev: Add a step to watch claim update in real time --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 4345533f..009733d0 100644 --- a/Makefile +++ b/Makefile @@ -129,3 +129,11 @@ eventgrid-register: --max-delivery-attempts 8 \ --name $(name) \ --source-resource-id $(source) + +watch-call: + @echo "👀 Watching status of $(phone_number)..." + while true; do \ + clear; \ + curl -s "$(endpoint)/call?phone_number=%2B$(phone_number)" | yq --prettyPrint '.[0] | {"phone_number": .phone_number, "claim": .claim, "reminders": .reminders}'; \ + sleep 3; \ + done