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

Function registerGitServiceAPI

packages/insomnia/src/main/git-service.ts:3501–3619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3499}
3500
3501export const registerGitServiceAPI = () => {
3502 ipcMainHandle('git.loadGitRepository', (_, options: Parameters<typeof loadGitRepository>[0]) =>
3503 loadGitRepository(options),
3504 );
3505 ipcMainHandle('git.getGitBranches', (_, options: Parameters<typeof getGitBranches>[0]) => getGitBranches(options));
3506 ipcMainHandle('git.fetchGitRemoteBranches', (_, options: Parameters<typeof fetchGitRemoteBranches>[0]) =>
3507 fetchGitRemoteBranches(options),
3508 );
3509 ipcMainHandle(
3510 'git.validateGitRepositoryCredentials',
3511 (_, options: Parameters<typeof validateGitRepositoryCredentials>[0]) => validateGitRepositoryCredentials(options),
3512 );
3513 ipcMainHandle('git.validateGitCredentialById', (_, options: Parameters<typeof validateGitCredentialById>[0]) =>
3514 validateGitCredentialById(options),
3515 );
3516 ipcMainHandle('git.getProjectGitFileIssues', (_, options: Parameters<typeof getProjectGitFileIssues>[0]) =>
3517 getProjectGitFileIssues(options),
3518 );
3519 ipcMainHandle('git.getProjectRulesetImportIssue', (_, options: Parameters<typeof getProjectRulesetImportIssue>[0]) =>
3520 getProjectRulesetImportIssue(options),
3521 );
3522 ipcMainHandle('git.gitFetchAction', (_, options: Parameters<typeof gitFetchAction>[0]) => gitFetchAction(options));
3523 ipcMainHandle('git.gitLogLoader', (_, options: Parameters<typeof gitLogLoader>[0]) => gitLogLoader(options));
3524 ipcMainHandle('git.gitChangesLoader', (_, options: Parameters<typeof gitChangesLoader>[0]) =>
3525 gitChangesLoader(options),
3526 );
3527 ipcMainHandle('git.canPushLoader', (_, options: Parameters<typeof canPushLoader>[0]) => canPushLoader(options));
3528 ipcMainHandle('git.cloneGitRepo', (_, options: Parameters<typeof cloneGitRepoAction>[0]) =>
3529 cloneGitRepoAction(options),
3530 );
3531 ipcMainHandle('git.openGitRepo', (_, options: Parameters<typeof openGitRepoAction>[0]) => openGitRepoAction(options));
3532 ipcMainHandle('git.checkGitRepoDirectory', (_, options: Parameters<typeof checkGitRepoDirectoryAction>[0]) =>
3533 checkGitRepoDirectoryAction(options),
3534 );
3535 ipcMainHandle('git.cleanupGitRepoStorage', (_, options: Parameters<typeof cleanupGitRepoStorageAction>[0]) =>
3536 cleanupGitRepoStorageAction(options),
3537 );
3538 ipcMainHandle('git.relocateGitRepo', (_, options: Parameters<typeof relocateGitRepoAction>[0]) =>
3539 relocateGitRepoAction(options),
3540 );
3541 ipcMainHandle('git.initGitRepoClone', (_, options: Parameters<typeof initGitRepoCloneAction>[0]) =>
3542 initGitRepoCloneAction(options),
3543 );
3544 ipcMainHandle('git.updateGitRepo', (_, options: Parameters<typeof updateGitRepoAction>[0]) =>
3545 updateGitRepoAction(options),
3546 );
3547 ipcMainHandle('git.resetGitRepo', (_, options: Parameters<typeof resetGitRepoAction>[0]) =>
3548 resetGitRepoAction(options),
3549 );
3550 ipcMainHandle('git.commitToGitRepo', (_, options: Parameters<typeof commitToGitRepoAction>[0]) =>
3551 commitToGitRepoAction(options),
3552 );
3553 ipcMainHandle('git.commitAndPushToGitRepo', (_, options: Parameters<typeof commitAndPushToGitRepoAction>[0]) =>
3554 commitAndPushToGitRepoAction(options),
3555 );
3556 ipcMainHandle('git.multipleCommitToGitRepo', (_, options: Parameters<typeof multipleCommitToGitRepoAction>[0]) =>
3557 multipleCommitToGitRepoAction(options),
3558 );

Callers 1

entry.main.tsFile · 0.90

Calls 15

ipcMainHandleFunction · 0.90
loadGitRepositoryFunction · 0.85
getGitBranchesFunction · 0.85
fetchGitRemoteBranchesFunction · 0.85
getProjectGitFileIssuesFunction · 0.85
gitFetchActionFunction · 0.85
gitLogLoaderFunction · 0.85
gitChangesLoaderFunction · 0.85
canPushLoaderFunction · 0.85

Tested by

no test coverage detected