MCPcopy Index your code
hub / github.com/humanlayer/12-factor-agents / getSectionBaseName

Function getSectionBaseName

packages/walkthroughgen/src/cli.ts:39–41  ·  view source on GitHub ↗
(section: Section)

Source from the content-addressed store, hash-verified

37}
38
39function getSectionBaseName(section: Section): string {
40 return section.name || section.title.toLowerCase().replace(/[^a-z0-9]+/g, '-');
41}
42
43function copySourceFiles(srcFile: string, projectRoot: string, sectionDir: string): void {
44 const srcAbsPath = path.resolve(projectRoot, srcFile);

Callers 1

cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected