gen_v001() — supabase Function Reference
Architecture documentation for the gen_v001() function in cli.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 05897f40_5957_af84_e831_4d593f607811["gen_v001()"] 3b9ad9c9_91cb_a5a2_db76_68cd2fcf2ac5["gen()"] 3b9ad9c9_91cb_a5a2_db76_68cd2fcf2ac5 -->|calls| 05897f40_5957_af84_e831_4d593f607811 c3f63f97_1b0c_be51_f93b_a348e9e50e58["writeToDisk()"] 05897f40_5957_af84_e831_4d593f607811 -->|calls| c3f63f97_1b0c_be51_f93b_a348e9e50e58 style 05897f40_5957_af84_e831_4d593f607811 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/generator/cli.ts lines 25–47
async function gen_v001(spec: CliSpec, dest: string) {
let commandMap = new Map(spec.commands.map((item) => [item.id, item]))
const commands = spec.commands.map((x) => {
const isChild = x.subcommands.length < 1
const heading = isChild ? `### ${x.summary} [#${x.id}]` : `## ${x.summary} [#${x.id}]`
return {
...x,
heading,
subcommandList: x.subcommands.map((c) => commandMap.get(c)),
}
})
const content = ejs.render(template, {
info: spec.info,
commands,
})
// console.log(content)
// Write to disk
await writeToDisk(dest, content)
console.log('Saved: ', dest)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does gen_v001() do?
gen_v001() is a function in the supabase codebase.
What does gen_v001() call?
gen_v001() calls 1 function(s): writeToDisk.
What calls gen_v001()?
gen_v001() is called by 1 function(s): gen.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free