feat: proje secimi ve otomatik ekip akisini ekle
This commit is contained in:
10
server/projectPicker.js
Normal file
10
server/projectPicker.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { execFile } from "node:child_process";
|
||||
import { promisify } from "node:util";
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
|
||||
export async function selectProjectFolder() {
|
||||
const script = 'POSIX path of (choose folder with prompt "Select project folder")';
|
||||
const { stdout } = await execFileAsync("/usr/bin/osascript", ["-e", script]);
|
||||
return String(stdout ?? "").trim();
|
||||
}
|
||||
Reference in New Issue
Block a user