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. user:token:create and user:token:list gain --json, user:backfill-handles a progress bar; planning IDs leave the descriptions.
8 lines
253 B
Go
8 lines
253 B
Go
package controllers
|
|
|
|
import "git.golem15.com/golem15/summercms/modules/diary"
|
|
|
|
// pluginLog is the plugin's logger: its records carry component=user, so
|
|
// config/log.yaml can raise or lower them (log.components.user).
|
|
var pluginLog = diary.For("user")
|