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

Method getCommands

cli/client/commands.go:53–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func (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
68func (gohanClientCLI *GohanClientCLI) getListCommand(s *schema.Schema) gohanCommand {
69 return gohanCommand{

Callers 2

NewGohanClientCLIFunction · 0.95
client_test.goFile · 0.80

Calls 6

getListCommandMethod · 0.95
getGetCommandMethod · 0.95
getPostCommandMethod · 0.95
getPutCommandMethod · 0.95
getDeleteCommandMethod · 0.95
getCustomCommandsMethod · 0.95

Tested by

no test coverage detected