Move management server to a separate directory (#67)

* Move management server to a separate directory
This commit is contained in:
andpar83
2021-07-24 07:14:29 -07:00
committed by GitHub
parent 83ac774264
commit 9e4aa4f1f1
10 changed files with 109 additions and 22 deletions

View File

@@ -2,11 +2,12 @@ package cmd
import (
"fmt"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"os"
"os/signal"
"runtime"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
const (
@@ -47,7 +48,6 @@ func init() {
rootCmd.AddCommand(addPeerCmd)
rootCmd.AddCommand(upCmd)
rootCmd.AddCommand(signalCmd)
rootCmd.AddCommand(mgmtCmd)
rootCmd.AddCommand(serviceCmd)
serviceCmd.AddCommand(runCmd, startCmd, stopCmd, restartCmd) // service control commands are subcommands of service
serviceCmd.AddCommand(installCmd, uninstallCmd) // service installer commands are subcommands of service