DEMO: add watcher targets
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 18 Dec 2017 18:17:48 +0000 (19:17 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 5 Jan 2018 14:29:17 +0000 (15:29 +0100)
Change-Id: Ibfb1996e12d9ccccb452bcfd671a6e21c6cc22b0

Makefile

index db93c0c..187a2bf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ WELES_DB=/tmp/weles
 DATA_SRV=demo/dtl
 DATA_SRV_PORT=9090
 
-.PHONY: build run watch serve clean
+.PHONY: build run serve watch_jobs watch_tree clean
 
 build:
        mkdir -p ${WELES_DB}
@@ -16,7 +16,10 @@ run:
 serve:
        cd ${DATA_SRV} && python -m SimpleHTTPServer ${DATA_SRV_PORT}
 
-watch:
+watch_jobs:
+       watch -n1 "curl -sL ${WELES}/api/v1/jobs | jq 'sort_by(.jobid) | reverse'"
+
+watch_tree:
        watch -n1 "tree -r ${WELES_DB}"
 
 clean: