(info, context)
| 29 | name: "Worktree", |
| 30 | description: "Create a git worktree", |
| 31 | async configure(info, context) { |
| 32 | const { AppRuntime, Worktree } = await loadWorktree() |
| 33 | const next = await AppRuntime.runPromise( |
| 34 | provideContext( |
| 35 | Worktree.Service.use((svc) => svc.makeWorktreeInfo({ detached: true })), |
| 36 | context, |
| 37 | ), |
| 38 | ) |
| 39 | return { |
| 40 | ...info, |
| 41 | name: next.name, |
| 42 | directory: next.directory, |
| 43 | } |
| 44 | }, |
| 45 | async create(info, _env, _from, context) { |
| 46 | const { AppRuntime, Worktree } = await loadWorktree() |
| 47 | const config = decodeWorktreeConfig(info) |
nothing calls this directly
no test coverage detected