(workspaceId: string)
| 56 | * `workspaceId`) — this binds one workspace's calls into that shape. |
| 57 | */ |
| 58 | export function syncVCSLikeForWorkspace(workspaceId: string): SyncVCSLike { |
| 59 | return { |
| 60 | hasBackendProject: () => sync.hasBackendProject(workspaceId), |
| 61 | push: options => sync.push(workspaceId, options), |
| 62 | stage: entries => sync.stage(workspaceId, entries), |
| 63 | status: candidates => sync.status(workspaceId, candidates), |
| 64 | switchAndCreateBackendProjectIfNotExist: (rootDocumentId, name) => |
| 65 | sync.switchAndCreateBackendProjectIfNotExist(workspaceId, rootDocumentId, name), |
| 66 | takeSnapshot: name => sync.takeSnapshot(workspaceId, name), |
| 67 | }; |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * ProjectLintRuleset is parented to the project, whose _id is not stable across machines, |
no test coverage detected