From 1ef6e87a260f385057850791c2bcf751d91731cd Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 22 Jul 2022 13:04:20 -0400 Subject: [PATCH] Add extra commands funcs (#2279) --- internal/cmd/commands.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/cmd/commands.go b/internal/cmd/commands.go index 1730e9d32c..46bd091c9c 100644 --- a/internal/cmd/commands.go +++ b/internal/cmd/commands.go @@ -1127,4 +1127,12 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) { }, nil }, } + + for _, fn := range extraCommandsFuncs { + if fn != nil { + fn() + } + } } + +var extraCommandsFuncs []func()