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

Function init

packages/computer/src/git/status.test.ts:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21const isogit = git as unknown as IsomorphicGitStatusClient;
22
23async function init() {
24 await memfs.promises.mkdir(DIR, { recursive: true });
25 await git.init({ fs: memfs, dir: DIR, defaultBranch: "main" });
26}
27
28async function commit(name: string, content: string, message: string) {
29 await memfs.promises.writeFile(`${DIR}/${name}`, content);

Callers 1

status.test.tsFile · 0.70

Calls 2

mkdirMethod · 0.65
initMethod · 0.65

Tested by

no test coverage detected