[server][cmd] split serve into separate package

This commit is contained in:
Abhishek Shroff
2024-10-20 10:35:41 +05:30
parent a66ce92519
commit 519a29bbad
3 changed files with 14 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/shroff/phylum/server/internal/command/common"
"github.com/shroff/phylum/server/internal/command/fs"
"github.com/shroff/phylum/server/internal/command/schema"
"github.com/shroff/phylum/server/internal/command/serve"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/viper"
@@ -52,8 +53,9 @@ func SetupCommand() {
rootCmd.AddCommand([]*cobra.Command{
appcmd.SetupCommand(),
fs.SetupCommand(),
schema.SetupCommand(),
fs.SetupCommand(),
serve.SetupCommand(),
}...)
rootCmd.Execute()
}