From ede57753ef7c8d227f341995ee5a8cfe54089536 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 22 Sep 2019 21:35:05 -0400 Subject: [PATCH] improved examples --- examples/reuse/Bakefile | 14 ++++++++++---- t.py | 6 ++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 t.py diff --git a/examples/reuse/Bakefile b/examples/reuse/Bakefile index 476cbf1..306be69 100644 --- a/examples/reuse/Bakefile +++ b/examples/reuse/Bakefile @@ -1,10 +1,16 @@ hello: hello/reuse hello/reuse/concurrent - + echo "You just ran $(red 'hello') directly, then indirectly (via bake+bash; 6 times, concurrently!)" hello/basic: - echo 'hello' - + sleep 2 + echo "[$(red $(uuidgen))] hello!" hello/reuse: bake hello/basic hello/reuse/concurrent: - bake hello/reuse & bake hello/reuse + set -ex && \ + bake hello/reuse & + bake hello/reuse & + bake hello/reuse & + bake hello/reuse & + bake hello/reuse & + bake hello/reuse diff --git a/t.py b/t.py new file mode 100644 index 0000000..43c515a --- /dev/null +++ b/t.py @@ -0,0 +1,6 @@ +from bake import Bakefile + +bakefile = Bakefile.find() +bakefile.cache.clear() +# bakefile.cache["test"] = 1 +# print(bakefile.cache["test"])