feat(build): mark scaffolded files with //summer:make and pass the app to generated commands (quick-261028-pq8)
- model, migration, command, job and admin-controller stubs start with //summer:make <kind>; registry.gen.go keeps its generated-code header - the registry scan accepts the directive and the older header - command functions may take one *backpack.App; generatedCommands takes a variadic app, so plugin.go files calling generatedCommands() still compile - scaffolded plugins keep the app from Boot and return generatedCommands(p.app) - make:command notes the nil app for an older plugin.go - docs, help text and the blog example follow
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by summer make. DO NOT EDIT.
|
||||
//summer:make admin-controller
|
||||
|
||||
package controllers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user