style: run prettier formatter over src and tests

This commit is contained in:
2026-06-11 20:46:00 +05:30
parent 2389d4f297
commit 6b564a4569
211 changed files with 6134 additions and 4234 deletions
+13 -5
View File
@@ -5,24 +5,32 @@ const GitOperations = require('../GitOperations');
function register(currentFileRef) {
ipcMain.handle('git-status', async () => {
const dir = currentFileRef.current ? require('path').dirname(currentFileRef.current) : process.cwd();
const dir = currentFileRef.current
? require('path').dirname(currentFileRef.current)
: process.cwd();
return GitOperations.getStatus(dir);
});
ipcMain.handle('git-stage', async (_event, { files }) => {
const dir = currentFileRef.current ? require('path').dirname(currentFileRef.current) : process.cwd();
const dir = currentFileRef.current
? require('path').dirname(currentFileRef.current)
: process.cwd();
return GitOperations.stage(dir, files);
});
ipcMain.handle('git-commit', async (_event, { message }) => {
const dir = currentFileRef.current ? require('path').dirname(currentFileRef.current) : process.cwd();
const dir = currentFileRef.current
? require('path').dirname(currentFileRef.current)
: process.cwd();
return GitOperations.commit(dir, message);
});
ipcMain.handle('git-log', async () => {
const dir = currentFileRef.current ? require('path').dirname(currentFileRef.current) : process.cwd();
const dir = currentFileRef.current
? require('path').dirname(currentFileRef.current)
: process.cwd();
return GitOperations.log(dir);
});
}
module.exports = { register };
module.exports = { register };