Skip to content

Commit 4d41411

Browse files
authored
fix: method names should be kebab case (#6)
Only parameter names and examples should be camel case.
1 parent 5ed1579 commit 4d41411

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/generate/snippets/snippets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func runCommand(opts *Options) {
5858
for snippet, examples := range rawSnippets {
5959
for name, example := range examples {
6060
err := writeSnippet(
61-
filepath.Join(opts.OutputDirectory, snippet),
61+
filepath.Join(opts.OutputDirectory, utils.ToKebabCase(snippet)),
6262
fmt.Sprintf("%s.mdx", utils.ToCamelCase(name)),
6363
generateMarkdownSnippet(example),
6464
)

0 commit comments

Comments
 (0)