diff options
Diffstat (limited to 'scripts/start-next-task')
| -rwxr-xr-x | scripts/start-next-task | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/start-next-task b/scripts/start-next-task new file mode 100755 index 0000000..1e45eb3 --- /dev/null +++ b/scripts/start-next-task @@ -0,0 +1,15 @@ +#!/bin/bash +# start-next-task — run the next task selected by scripts/next-task + +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" + +task_id=$("$SCRIPT_DIR/next-task") + +if [[ -z "$task_id" ]]; then + echo "No task to start." + exit 0 +fi + +echo claudomator start "$task_id" |
