MCPcopy Create free account
hub / github.com/cloudwan/gohan / getServerCommand

Function getServerCommand

cli/cli.go:367–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365}
366
367func getServerCommand() cli.Command {
368 return cli.Command{
369 Name: "server",
370 ShortName: "srv",
371 Usage: "Run API Server",
372 Description: "Run Gohan API server",
373 Flags: []cli.Flag{
374 cli.StringFlag{Name: "config-file", Value: defaultConfigFile, Usage: "Server config File"},
375 },
376 Action: func(c *cli.Context) {
377 configFile := c.String("config-file")
378 server.RunServer(configFile)
379 },
380 }
381}
382
383func getTestExtensionsCommand() cli.Command {
384 return cli.Command{

Callers 1

RunFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected