MCPcopy Create free account
hub / github.com/AI45Lab/Code / findConfig

Method findConfig

sdk/node/examples/git/test_worktree_git.ts:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 static findConfig(): string {
28 if (process.env.A3S_CONFIG) return process.env.A3S_CONFIG;
29 const homeConfig: string = path.join(os.homedir(), ".a3s", "config.acl");
30 if (fs.existsSync(homeConfig)) return homeConfig;
31 throw new Error("Config not found. Create ~/.a3s/config.acl or set A3S_CONFIG");
32 }
33
34 static initGitRepo(dir: string): void {
35 execSync("git init", { cwd: dir, stdio: "pipe" });

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected