improved examples

This commit is contained in:
2019-09-22 21:35:05 -04:00
parent 3c6330a8c0
commit ede57753ef
2 changed files with 16 additions and 4 deletions
+10 -4
View File
@@ -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
+6
View File
@@ -0,0 +1,6 @@
from bake import Bakefile
bakefile = Bakefile.find()
bakefile.cache.clear()
# bakefile.cache["test"] = 1
# print(bakefile.cache["test"])