Skip to content

Commit df60481

Browse files
authored
Merge pull request #4343 from monteiro-renato/patch-6
📖 small fixes to extending_cli_features_and_plugins.md
2 parents b0885c9 + c74e755 commit df60481

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/book/src/plugins/extending/extending_cli_features_and_plugins.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ These utilities allow you to:
184184
### Example
185185

186186
If you need to insert custom content into a scaffolded file,
187-
you can use the `Insert` function provided by the plugin utilities:
187+
you can use the `InsertCode` function provided by the plugin utilities:
188188

189189
```go
190-
pluginutil.Insert(file, location, content)
190+
pluginutil.InsertCode(filename, target, code)
191191
```
192192

193193
This approach enables you to extend and modify the generated
@@ -402,7 +402,7 @@ creating features or plugins that can rely on this information.
402402
[plugin-sub-command]: https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#Subcommand
403403
[plugin-update-meta]: https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#UpdatesMetadata
404404
[markers-scaffold]: ./../../reference/markers/scaffold.md
405-
[kb-utils]: ./../../../../../pkg/plugin/util/util.go
405+
[kb-utils]: https://github.com/kubernetes-sigs/kubebuilder/blob/book-v4/pkg/plugin/util/util.go
406406
[project-file-config]: ./../../reference/project-config.md
407407
[cli]: ./../../../../../pkg/cli
408408
[kb-go-plugin]: ./../../../../../pkg/plugins/golang/v4

0 commit comments

Comments
 (0)