shrink_worktrees
Queue worktrees to be shrunk in the background.
writesidempotentdestructiveCLI onlyWorktree
Shrinking deletes the gitignored dependency and build directories that sit beside the file that rebuilds them. Komrad shrinks only the worktrees of archived tasks, and leaves every other worktree alone.
Calling it#
curl -X POST http://127.0.0.1:8787/komrad.worktree.v1.WorktreeService/ShrinkWorktrees \
-H 'Content-Type: application/json' \
-d '{
"dirs": [
"<dirs>"
]
}'komrad rpc shrink-worktrees \
--dirs '<string>'Request#
ShrinkWorktreesRequest#
| Field | Type | Description |
|---|---|---|
dirs | string[]* no repeats each not empty | The worktrees to shrink, by the paths |
Response#
Empty#
No fields.