improve command description

This commit is contained in:
Willy Kloucek
2022-01-07 13:19:39 +01:00
parent f917691996
commit d9744ebda7
86 changed files with 234 additions and 178 deletions
+3 -7
View File
@@ -11,16 +11,12 @@ import (
// ThumbnailsCommand is the entrypoint for the thumbnails command.
func ThumbnailsCommand(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "thumbnails",
Usage: "Start thumbnails server",
Category: "Extensions",
Name: cfg.Thumbnails.Service.Name,
Usage: subcommandDescription(cfg.Thumbnails.Service.Name),
Category: "extensions",
Before: func(ctx *cli.Context) error {
return parser.ParseConfig(cfg)
},
Action: func(c *cli.Context) error {
origCmd := command.Server(cfg.Thumbnails)
return handleOriginalAction(c, origCmd)
},
Subcommands: command.GetCommands(cfg.Thumbnails),
}
}