mirror of
https://github.com/max-sixty/worktrunk.git
synced 2026-11-22 17:43:47 +08:00
Demoshell's guide needs Bash to report command exit status before it can verify successful steps. Put the command-tracker prompt and OSC 133 exit markers in the startup rcfile, skipping the initial prompt so Studio does not mistake it for the app exiting. Keep the recipe and published guide representation aligned with the working demo. Shorten the Try it page to the introduction, loading note, full-page fallback, attribution, and install link. This follows [#4280](https://github.com/max-sixty/worktrunk/pull/4280). Validation: ARM64 Alpine recipe and guide walkthrough; startup, failed-command, and successful-command marker checks; published demo walkthrough; docs sync test and build; rendered copy review. The full local gate ran 5,392 tests: 5,389 passed and three PowerShell tests failed because the installed PowerShell 7.5.2 crashes with `Stack overflow.` even on `pwsh -NoProfile -Command '1 + 1'` outside the repository. Pre-commit checks pass separately. > _This was written by Codex on behalf of max-sixty_
69 lines
2.4 KiB
JSON
69 lines
2.4 KiB
JSON
{
|
|
"title": "Take a change from a new worktree to main",
|
|
"order_mode": "fixed",
|
|
"cta_label": "Install Worktrunk",
|
|
"cta_url": "https://worktrunk.dev/#install",
|
|
"steps": [
|
|
{
|
|
"title": "See every worktree at once",
|
|
"body": "One row per worktree: docs is a commit ahead of main, and experiment has uncommitted changes (!). @ marks where you are.",
|
|
"kind": "command",
|
|
"match_mode": "exact",
|
|
"pattern": "wt list",
|
|
"output_contains": "Showing 3 worktrees",
|
|
"require_success": true,
|
|
"optional": false
|
|
},
|
|
{
|
|
"title": "Start a worktree for a new change",
|
|
"body": "--create makes the branch and its worktree together and moves your shell into it: one command in place of git worktree add plus a cd.",
|
|
"kind": "command",
|
|
"match_mode": "exact",
|
|
"pattern": "wt switch --create raise-price",
|
|
"output_contains": "Created branch",
|
|
"require_success": true,
|
|
"optional": false
|
|
},
|
|
{
|
|
"title": "Make the change",
|
|
"body": "Edit a file as you or an agent would. The other worktrees don't see it.",
|
|
"kind": "command",
|
|
"match_mode": "exact",
|
|
"pattern": "sed -i 's/19\\/month/24\\/month/' pricing.txt",
|
|
"output_contains": null,
|
|
"require_success": true,
|
|
"optional": false
|
|
},
|
|
{
|
|
"title": "See the change in the list",
|
|
"body": "raise-price now shows ! for uncommitted changes and +1 -1 for the lines changed.",
|
|
"kind": "command",
|
|
"match_mode": "exact",
|
|
"pattern": "wt list",
|
|
"output_contains": "Showing 4 worktrees",
|
|
"require_success": true,
|
|
"optional": false
|
|
},
|
|
{
|
|
"title": "Merge it into main",
|
|
"body": "No git commit needed: wt merge commits the change, rebases onto main if needed, fast-forwards main, removes the worktree and branch, and brings your shell back to main.",
|
|
"kind": "command",
|
|
"match_mode": "exact",
|
|
"pattern": "wt merge",
|
|
"output_contains": "Merged to",
|
|
"require_success": true,
|
|
"optional": false
|
|
},
|
|
{
|
|
"title": "Jump to another worktree",
|
|
"body": "Run wt switch to open a picker: type to filter, move with the arrow keys, Enter to switch, Esc to leave. Mark this step done when you've tried it.",
|
|
"kind": "manual",
|
|
"match_mode": "exact",
|
|
"pattern": "",
|
|
"output_contains": null,
|
|
"require_success": false,
|
|
"optional": true
|
|
}
|
|
]
|
|
}
|