From e0c2aa76cdd5023cab16a0a4bdbb52bb5aac0e9a Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Thu, 9 Jan 2020 14:34:57 +0100 Subject: [PATCH] cleanup root command and use registry to load commands --- pkg/command/root.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/command/root.go b/pkg/command/root.go index 3c9211779e..f88a3ea558 100644 --- a/pkg/command/root.go +++ b/pkg/command/root.go @@ -74,15 +74,8 @@ func Execute() error { return nil }, - - Commands: []cli.Command{ - Server(cfg), - Health(cfg), - }, } - // TODO(refs) fix this interface and make it play nice with cli.Command to reuse and skip - // doing runtime.AddRuntime(app) for _, fn := range register.Commands { app.Commands = append( app.Commands, @@ -90,10 +83,7 @@ func Execute() error { ) } - // add runtime commands to the binary runtime.AddRuntime(app) - - // add the runtime.Run command to the binary app.Commands = append( app.Commands, runtime.Command(app),