(info, _env, _from, context)
| 43 | } |
| 44 | }, |
| 45 | async create(info, _env, _from, context) { |
| 46 | const { AppRuntime, Worktree } = await loadWorktree() |
| 47 | const config = decodeWorktreeConfig(info) |
| 48 | await AppRuntime.runPromise( |
| 49 | provideContext( |
| 50 | Worktree.Service.use((svc) => |
| 51 | svc.createFromInfo({ |
| 52 | name: config.name, |
| 53 | directory: config.directory, |
| 54 | ...(config.branch ? { branch: config.branch } : {}), |
| 55 | }), |
| 56 | ), |
| 57 | context, |
| 58 | ), |
| 59 | ) |
| 60 | }, |
| 61 | async list(context) { |
| 62 | const { AppRuntime, Worktree } = await loadWorktree() |
| 63 | const ctx = requireInstance(context) |
nothing calls this directly
no test coverage detected