GetCommands provides all commands for this service
(cfg *config.Config)
| 10 | |
| 11 | // GetCommands provides all commands for this service |
| 12 | func GetCommands(cfg *config.Config) []*cobra.Command { |
| 13 | return []*cobra.Command{ |
| 14 | // start this service |
| 15 | Server(cfg), |
| 16 | |
| 17 | // interaction with this service |
| 18 | |
| 19 | // infos about this service |
| 20 | Health(cfg), |
| 21 | Version(cfg), |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // Execute is the entry point for the opencloud auth-basic command. |
| 26 | func Execute(cfg *config.Config) error { |