Files
gh-ypares-agent-skills-ypar…/skills/working-with-jj/scripts/jj-parallel-todos
2025-11-30 09:08:16 +08:00

21 lines
497 B
Bash
Executable File

#!/usr/bin/env bash
# Create multiple parallel TODO branches from same parent
# Usage: jj-parallel-todos <PARENT> <TITLE1> <TITLE2> [TITLE3...]
# Example: jj-parallel-todos @ "Widget A" "Widget B" "Widget C"
set -euo pipefail
if [[ $# -lt 2 ]]; then
echo "Usage: jj-parallel-todos <PARENT> <TITLE1> <TITLE2> [TITLE3...]" >&2
exit 1
fi
parent="$1"
shift
for title in "$@"; do
jj new --no-edit "$parent" -m "[todo] ${title}"
done
echo "✅ Created $# parallel TODO branches from $parent"