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