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