Skip to content

Instantly share code, notes, and snippets.

@nomeata
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nomeata/a146d35fd9f6eeee6568 to your computer and use it in GitHub Desktop.
Save nomeata/a146d35fd9f6eeee6568 to your computer and use it in GitHub Desktop.
shake UI demo
#!/bin/bash
while read -u 3 line
do
if [ "$line" == "====" ]
then
read -n 0
clear
else
echo $line
fi
done 3<$0
exit
Press Enter to view the next state
====
This is the demo build system, running with -j2
====
This is the demo build system, running with -j2
all: waiting for target1, target2 and 2 more
====
This is the demo build system, running with -j2
all: waiting for target1, target2 and 2 more
target1: … working
target2: … working
====
This is the demo build system, running with -j2
all: waiting for target1, target2 and 2 more
target1: … working
target2: … running gcc
====
This is the demo build system, running with -j2
all: waiting for target1, target2 and 2 more
target1: … working
target2: … working
====
This is the demo build system, running with -j2
target2: ✓ finshed
all: waiting for target1, target3 and 1 more
target1: … working
target3: … working
====
This is the demo build system, running with -j2
target2: ✓ finshed
target1: ☠ failed
all: waiting for target3 and target4
target3: … working
target4: … working
====
This is the demo build system, running with -j2
target2: ✓ finshed
target1: ☠ failed
all: waiting for target3 and target4
target3: … running gcc
target4: … working
====
This is the demo build system, running with -j2
target2: ✓ finshed
target1: ☠ failed
all: waiting for target3 and target4
target3: waiting for target5
target4: … working
target5: … running find
====
This is the demo build system, running with -j2
target2: ✓ finshed
target1: ☠ failed
all: waiting for target3 and target4
target3: waiting for target5
target4: … working
target5: … working
====
This is the demo build system, running with -j2
target2: ✓ finshed
target1: ☠ failed
all: waiting for target3 and target4
target5: ✓ working
target3: … working
target4: … working
====
This is the demo build system, running with -j2
target2: ✓ finshed
target1: ☠ failed
all: waiting for target3
target5: ✓ working
target4: ✓ working
target3: … working
====
This is the demo build system, running with -j2
target2: ✓ finshed
target1: ☠ failed
target5: ✓ working
target4: ✓ working
target3: ✓ working
all: ✓ finished
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment