()
| 365 | } |
| 366 | |
| 367 | func 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 | |
| 383 | func getTestExtensionsCommand() cli.Command { |
| 384 | return cli.Command{ |