MCPcopy
hub / github.com/anomalyco/opencode / removeCreatedWorktree

Function removeCreatedWorktree

packages/opencode/test/project/worktree.test.ts:43–48  ·  view source on GitHub ↗
(directory: string)

Source from the content-addressed store, hash-verified

41})
42
43const removeCreatedWorktree = (directory: string) =>
44 Effect.gen(function* () {
45 const svc = yield* Worktree.Service
46 const ok = yield* svc.remove({ directory })
47 if (!ok) return yield* Effect.fail(new Error(`failed to remove worktree ${directory}`))
48 })
49
50const withCreatedWorktree = <A, E, R>(
51 input: Parameters<Worktree.Interface["create"]>[0],

Callers 2

withCreatedWorktreeFunction · 0.70
worktree.test.tsFile · 0.70

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected