MCPcopy Index your code
hub / github.com/bitjson/typescript-starter / initialCommit

Function initialCommit

src/cli/tasks.ts:108–128  ·  view source on GitHub ↗
(spawner: typeof execa)

Source from the content-addressed store, hash-verified

106};
107
108export const initialCommit = (spawner: typeof execa) => async (
109 hash: string,
110 projectDir: string
111): Promise<void> => {
112 const opts: Options = {
113 cwd: projectDir,
114 encoding: 'utf8',
115 stdio: 'pipe',
116 };
117 await spawner('git', ['init'], opts);
118 await spawner('git', ['add', '-A'], opts);
119 await spawner(
120 'git',
121 [
122 'commit',
123 '-m',
124 `Initial commit\n\nCreated with bitjson/typescript-starter@${hash}`,
125 ],
126 opts
127 );
128};
129
130export const install = (spawner: typeof execa) => async (
131 runner: Runner,

Callers 2

cli.unit.spec.tsFile · 0.90
tasks.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected