MCPcopy Create free account
hub / github.com/algolia/cli / commandOutputFilename

Function commandOutputFilename

internal/docs/mdx.go:89–99  ·  view source on GitHub ↗
(cmd Command)

Source from the content-addressed store, hash-verified

87}
88
89func commandOutputFilename(cmd Command) string {
90 parts := commandPathParts(cmd)
91 if len(parts) == 0 {
92 return "index.mdx"
93 }
94
95 last := len(parts) - 1
96 parts[last] += ".mdx"
97
98 return filepath.Join(parts...)
99}
100
101func buildMdxSlug(parts []string) string {
102 if len(parts) == 0 {

Callers 1

writeMdxPageTreeFunction · 0.85

Calls 1

commandPathPartsFunction · 0.85

Tested by

no test coverage detected