MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / main

Function main

packages/contentful-generator/src/index.ts:78–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78const main = async () => {
79 const cmd = process.argv[2]
80
81 switch (cmd) {
82 case 'types': {
83 await createContentTypes()
84 return
85 }
86 case 'data':
87 await createMockData()
88 return
89 case 'reset':
90 await resetEnvironment()
91 return
92 default:
93 throw new Error(`Unknown command ${cmd}`)
94 }
95}
96
97main().catch((e) => console.error(e))

Callers 1

index.tsFile · 0.70

Calls 3

createContentTypesFunction · 0.85
createMockDataFunction · 0.85
resetEnvironmentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…