MCPcopy Create free account
hub / github.com/cloudflare/computer / init

Function init

packages/computer/src/git/staging.test.ts:19–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17const AUTHOR = { name: "t", email: "t@example.test" };
18
19async function init() {
20 await memfs.promises.mkdir(DIR, { recursive: true });
21 await git.init({ fs: memfs, dir: DIR, defaultBranch: "main" });
22}
23
24async function statusOf(path: string): Promise<[number, number, number] | undefined> {
25 const matrix = await git.statusMatrix({ fs: memfs, dir: DIR });

Callers 1

staging.test.tsFile · 0.70

Calls 2

mkdirMethod · 0.65
initMethod · 0.65

Tested by

no test coverage detected