aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoris2021-11-14 23:25:55 +0100
committerJoris2021-11-19 11:42:20 +0100
commit9f94611a42d41cf94cdccb00b5d2eec0d5d02970 (patch)
tree9bab5bc342e22aa38b13a2dbd3525bbfe2beedb5 /bin
parent59c44b15010eea5490896a5b5d427b415ad6f56a (diff)
Add initial working version
Diffstat (limited to 'bin')
-rwxr-xr-xbin/run.sh4
-rwxr-xr-xbin/watch.sh7
2 files changed, 11 insertions, 0 deletions
diff --git a/bin/run.sh b/bin/run.sh
new file mode 100755
index 0000000..8209ad6
--- /dev/null
+++ b/bin/run.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+"$TERM" --command bash -c "cargo run"
diff --git a/bin/watch.sh b/bin/watch.sh
new file mode 100755
index 0000000..e3a6c28
--- /dev/null
+++ b/bin/watch.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+watchexec \
+ --watch src \
+ --restart \
+ "(killall flashcards || true) && tput reset && cargo build && bin/run.sh"