make-todo-episode06-demo.sh
bash
sha256:07c10b6184a651841b238710523048c817c5c062f2435c64628f6e407e9d55e3
Fix stale 'under seven minutes' claim in THE POINT section
Sonnet 5
minor
⚠ breaking
6 hours ago
| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | # The todo domain (muse/plugins/todo) ships on muse's dev branch as of this |
| 5 | # recording but hasn't gone out in a released muse tarball yet -- this demo |
| 6 | # uses muse-dev (the editable install of ~/ecosystem/muse) rather than plain |
| 7 | # muse. Swap MUSE_BIN to "muse" once a release includes it. |
| 8 | MUSE_BIN="${MUSE_BIN:-muse-dev}" |
| 9 | DEMO_DIR="${1:-todo-episode06}" |
| 10 | |
| 11 | command -v "$MUSE_BIN" >/dev/null 2>&1 || { echo "error: $MUSE_BIN not found on PATH" >&2; exit 1; } |
| 12 | |
| 13 | rm -rf "$DEMO_DIR" |
| 14 | mkdir -p "$DEMO_DIR" |
| 15 | cd "$DEMO_DIR" |
| 16 | |
| 17 | "$MUSE_BIN" init --domain todo |
| 18 | |
| 19 | echo "Write episode 06 script" > todo.txt |
| 20 | "$MUSE_BIN" commit -m "Add first task" |
| 21 | |
| 22 | "$MUSE_BIN" checkout -b feature/alice |
| 23 | echo "Buy milk" >> todo.txt |
| 24 | "$MUSE_BIN" commit -m "Alice adds a task" |
| 25 | |
| 26 | "$MUSE_BIN" checkout main |
| 27 | "$MUSE_BIN" checkout -b feature/bob |
| 28 | echo "Fix the bug" >> todo.txt |
| 29 | "$MUSE_BIN" commit -m "Bob adds a different task" |
| 30 | |
| 31 | "$MUSE_BIN" checkout main |
| 32 | "$MUSE_BIN" merge feature/alice |
| 33 | "$MUSE_BIN" merge feature/bob |
| 34 | |
| 35 | echo |
| 36 | echo "Ready in: $(pwd)" |
| 37 | echo "todo.txt now has all three tasks, merged with zero conflicts:" |
| 38 | cat todo.txt |
File History
2 commits
sha256:07c10b6184a651841b238710523048c817c5c062f2435c64628f6e407e9d55e3
Fix stale 'under seven minutes' claim in THE POINT section
Sonnet 5
minor
⚠
6 hours ago
sha256:09264fa85007556b21298030c0b199f4cfd62912a27b1838f586c31b8908beed
Rename Episode 01 to 'The Whole Workflow'
Sonnet 5
1 day ago