MCPcopy Index your code
hub / github.com/deepflowio/deepflow / RegisterServerCommand

Function RegisterServerCommand

cli/ctl/server.go:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27)
28
29func RegisterServerCommand() *cobra.Command {
30 Server := &cobra.Command{
31 Use: "server",
32 Short: "server operation commands",
33 Run: func(cmd *cobra.Command, args []string) {
34 fmt.Println("please run with 'controller | ingester'.")
35 },
36 }
37
38 Server.AddCommand(controllerSubCommand())
39 Server.AddCommand(ingesterSubCommand())
40 return Server
41}
42
43func controllerSubCommand() *cobra.Command {
44 controller := &cobra.Command{

Callers 1

ExecuteFunction · 0.85

Calls 2

controllerSubCommandFunction · 0.85
ingesterSubCommandFunction · 0.85

Tested by

no test coverage detected