feat: console help, examples and named loggers (SummerCMS v0.4.0)
Every command gets long help and examples, descriptions in imperative sentence case, and a warn-only TestCommandsDocumented over bonfire.CheckDocs. The plugin logs through a diary component logger instead of the process default logger. Requires SummerCMS v0.4.0; command names and flags unchanged.
This commit is contained in:
@@ -67,7 +67,7 @@ func BuildTree(ctx context.Context, entries []models.MenuEntry, opts TreeOptions
|
||||
b.ctx = context.Background()
|
||||
}
|
||||
if b.opts.Logger == nil {
|
||||
b.opts.Logger = slog.Default()
|
||||
b.opts.Logger = pluginLog
|
||||
}
|
||||
var roots []*models.MenuEntry
|
||||
for i := range entries {
|
||||
|
||||
Reference in New Issue
Block a user