MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / getRepos

Function getRepos

src/app/api/git/route.ts:30–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30async function getRepos(): Promise<string[]> {
31 const { stdout } = await execAsync(`find "${WORKSPACE}" -maxdepth 2 -name ".git" -type d 2>/dev/null`);
32 return stdout.trim().split('\n').filter(Boolean).map((d) => d.replace('/.git', ''));
33}
34
35async function getRepoStatus(repoPath: string): Promise<RepoStatus> {
36 const name = repoPath.split('/').pop() || repoPath;

Callers 1

GETFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected