summaryrefslogtreecommitdiffstats
path: root/cmd/manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/manager.go')
-rw-r--r--cmd/manager.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmd/manager.go b/cmd/manager.go
index 3f1e223190..2024d5ebbd 100644
--- a/cmd/manager.go
+++ b/cmd/manager.go
@@ -21,6 +21,7 @@ var (
Subcommands: []cli.Command{
subcmdShutdown,
subcmdRestart,
+ subcmdReloadTemplates,
subcmdFlushQueues,
subcmdLogging,
subCmdProcesses,
@@ -46,6 +47,16 @@ var (
},
Action: runRestart,
}
+ subcmdReloadTemplates = cli.Command{
+ Name: "reload-templates",
+ Usage: "Reload template files in the running process",
+ Flags: []cli.Flag{
+ cli.BoolFlag{
+ Name: "debug",
+ },
+ },
+ Action: runReloadTemplates,
+ }
subcmdFlushQueues = cli.Command{
Name: "flush-queues",
Usage: "Flush queues in the running process",
@@ -115,6 +126,15 @@ func runRestart(c *cli.Context) error {
return handleCliResponseExtra(extra)
}
+func runReloadTemplates(c *cli.Context) error {
+ ctx, cancel := installSignals()
+ defer cancel()
+
+ setup(ctx, c.Bool("debug"))
+ extra := private.ReloadTemplates(ctx)
+ return handleCliResponseExtra(extra)
+}
+
func runFlushQueues(c *cli.Context) error {
ctx, cancel := installSignals()
defer cancel()