()
| 51 | } |
| 52 | |
| 53 | func (gohanClientCLI *GohanClientCLI) getCommands() []gohanCommand { |
| 54 | commands := []gohanCommand{} |
| 55 | for _, s := range gohanClientCLI.schemas { |
| 56 | commands = append(commands, |
| 57 | gohanClientCLI.getListCommand(s), |
| 58 | gohanClientCLI.getGetCommand(s), |
| 59 | gohanClientCLI.getPostCommand(s), |
| 60 | gohanClientCLI.getPutCommand(s), |
| 61 | gohanClientCLI.getDeleteCommand(s), |
| 62 | ) |
| 63 | commands = append(commands, gohanClientCLI.getCustomCommands(s)...) |
| 64 | } |
| 65 | return commands |
| 66 | } |
| 67 | |
| 68 | func (gohanClientCLI *GohanClientCLI) getListCommand(s *schema.Schema) gohanCommand { |
| 69 | return gohanCommand{ |
no test coverage detected