From ddfb922584dd990481f44aad1a989e5bdf188823 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 5 Mar 2026 17:41:09 +0000 Subject: scripts: make next-task machine-readable, simplify start-next-task next-task now outputs only the task ID (or nothing), removing prose prefixes that made downstream parsing fragile. start-next-task simplifies to a direct empty-check with no awk required. Co-Authored-By: Claude Sonnet 4.6 --- scripts/start-next-task | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/start-next-task (limited to 'scripts/start-next-task') 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" -- cgit v1.2.3