MCPcopy Create free account
hub / github.com/Kong/insomnia / syncVCSLikeForWorkspace

Function syncVCSLikeForWorkspace

packages/insomnia/src/ui/sync-utils.ts:58–68  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

56 * `workspaceId`) — this binds one workspace's calls into that shape.
57 */
58export 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,

Callers 2

clientActionFunction · 0.90
clientLoaderFunction · 0.90

Calls 6

hasBackendProjectMethod · 0.45
pushMethod · 0.45
stageMethod · 0.45
statusMethod · 0.45
takeSnapshotMethod · 0.45

Tested by

no test coverage detected