writeCliReferenceSections() — supabase Function Reference
Architecture documentation for the writeCliReferenceSections() function in Reference.generated.script.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD b792f766_6907_0c0b_d971_437562bc23c4["writeCliReferenceSections()"] 35786dbf_245c_1618_e006_4cf71f59bd93["run()"] 35786dbf_245c_1618_e006_4cf71f59bd93 -->|calls| b792f766_6907_0c0b_d971_437562bc23c4 cc06bdf5_979a_d1e8_fed7_bc8f4fe68c7c["genCliSectionTree()"] b792f766_6907_0c0b_d971_437562bc23c4 -->|calls| cc06bdf5_979a_d1e8_fed7_bc8f4fe68c7c 2ba77918_c71f_00b4_2b40_c0b152543573["join()"] b792f766_6907_0c0b_d971_437562bc23c4 -->|calls| 2ba77918_c71f_00b4_2b40_c0b152543573 86220fce_b7ec_5580_a5d9_938c3ed97a21["flattenCommonClientLibSections()"] b792f766_6907_0c0b_d971_437562bc23c4 -->|calls| 86220fce_b7ec_5580_a5d9_938c3ed97a21 style b792f766_6907_0c0b_d971_437562bc23c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Reference.generated.script.ts lines 223–250
async function writeCliReferenceSections() {
const cliSectionTree = await genCliSectionTree()
const pendingCliSectionTreeWrite = writeFile(
join(GENERATED_DIRECTORY, 'cli.latest.sections.json'),
JSON.stringify(cliSectionTree)
)
const flattenedCliSections = flattenCommonClientLibSections(cliSectionTree)
const pendingFlattenedCliSectionsWrite = writeFile(
join(GENERATED_DIRECTORY, 'cli.latest.flat.json'),
JSON.stringify(flattenedCliSections)
)
const cliSectionsBySlug = keyBy(
flattenedCliSections.filter(({ slug }) => !!slug),
(section) => section.slug
)
const pendingCliSlugDictionaryWrite = writeFile(
join(GENERATED_DIRECTORY, 'cli.latest.bySlug.json'),
JSON.stringify(cliSectionsBySlug)
)
return Promise.all([
pendingCliSectionTreeWrite,
pendingFlattenedCliSectionsWrite,
pendingCliSlugDictionaryWrite,
])
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does writeCliReferenceSections() do?
writeCliReferenceSections() is a function in the supabase codebase.
What does writeCliReferenceSections() call?
writeCliReferenceSections() calls 3 function(s): flattenCommonClientLibSections, genCliSectionTree, join.
What calls writeCliReferenceSections()?
writeCliReferenceSections() is called by 1 function(s): run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free