From 9f94611a42d41cf94cdccb00b5d2eec0d5d02970 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 14 Nov 2021 23:25:55 +0100 Subject: Add initial working version --- bin/run.sh | 4 ++++ bin/watch.sh | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100755 bin/run.sh create mode 100755 bin/watch.sh (limited to 'bin') 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" -- cgit v1.2.3